Support Board
Date/Time: Wed, 05 Mar 2025 19:40:57 +0000
Post From: Problems with Drawing Tools
[2022-01-06 04:43:14] |
Tony - Posts: 552 |
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; |