Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 14:18:43 +0000



Post From: programmatically getting the currently selected drawing on the chart

[2018-04-02 19:20:00]
WarriorTrader - Posts: 245
From a quick test, it appears my understanding of how drawings and this property was incorrect. The IsSelected property only works when the drawing is selected from the chart it was created from. So my proposed solution will not work. I'm using sc.GetUserDrawnChartDrawing to iterate through all the drawings. Please advise.


You can draw another tool on the desired chart via code then use c.GetUserDrawnChartDrawing on the second chart for a second time to find the new tool. I do something similar although for a different reason.


--WT
NOT SC support