Login Page - Create Account

Support Board


Date/Time: Thu, 10 Jul 2025 05:27:24 +0000



Post From: Problems with Drawing Tools

[2022-01-06 04:43:14]
Tony - Posts: 610
Regarding question 1, instead of hiding/showing the drawing, you can also relocate
the drawing out of chart vertical range:

s_UseTool DrawingTool;
DrawingTool.Clear();
DrawingTool.BeginValue = sc.YPixelCoordinateToGraphValue(sc.ChartRegion1TopCoordinate+1000);
// or
// DrawingTool.BeginValue = sc.YPixelCoordinateToGraphValue(sc.ChartRegion1BottomCoordinate-1000);

it will also make the drawing disappear from the chart, see if BeginDateTime Anchor stay the same
or not.

Also, have you tried to set BeginDateTime Anchor with ACSIL code?

SCDateTime AnchorForText;
AnchorForText.SetDateYMD(2022, 1, 4);
AnchorForText.SetTimeHMS(10, 30, 07);
DrawingTool.BeginDateTime = AnchorForText;