Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 03:47:47 +0000



Post From: Display drawings from another chart

[2020-02-29 20:07:45]
maxpi - Posts: 175
this code running on the chart the drawings are on, chart#1, can discover the drawings: It logs all the drawing indexes
int drawingIndex =0;
while(sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_RECTANGLE_EXT_HIGHLIGHT,
DrawingObject, drawingIndex))
{
  MessageText.Format("drawingIndex %i", drawingIndex);
  sc.AddMessageToLog(MessageText, 0);
  drawingIndex++;
}

this similar code running on chart#3 cannot discover the drawings on chart#1
drawingIndex =0;
while(sc.GetUserDrawnChartDrawing(1, DRAWING_RECTANGLE_EXT_HIGHLIGHT,
DrawingObject, drawingIndex))
{
  MessageText.Format("drawingIndex %i", drawingIndex);
  sc.AddMessageToLog(MessageText, 0);
  drawingIndex++;
}

It might be that the code can't recognize chart #1?