Support Board
Date/Time: Thu, 13 Feb 2025 23:25:56 +0000
Post From: ACSIL usetool to modify tool color
[2020-12-18 19:47:07] |
onnb - Posts: 662 |
We are trying to manipulate 3 lines The first line we are trying to manipulate through s_UseTool::Color The second line which we expected to change UseTool::SecondaryColor but its not there (there is no value) And a third line that is configured at the 50% between them through s_UseTool::LevelColor Something like this int index = 0; s_UseTool chart_drawing; while (sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_UNKNOWN, chart_drawing, index++)) { if (chart_drawing.DrawingType == DRAWING_PARALLEL_LINES) { chart_drawing.Color = line_color; chart_drawing.LevelColor[0] = line_color; chart_drawing.LevelColor[1] = line_color; chart_drawing.LevelColor[2] = line_color; chart_drawing.LevelColor[3] = line_color; chart_drawing.SecondaryColor = fill_color; sc.UseTool(chart_drawing); } } Date Time Of Last Edit: 2020-12-18 19:51:40
|