I have created an application where by whenever it loads up, it recreates my chart and provides functionality to add or delete Color Lines.
I would like to know how I can save the position of the lines that I have drawn such that when my application loads up the next time round, I can re-add the lines in exactly the same position and length.
I was thinking of using the technique below to store the line information
Code: Select all
ProfileWrite SettingsFileName, "ColorLine1", "Color", ColorValue
ProfileWrite SettingsFileName, "ColorLine1", "Position", PositionValue
Code: Select all
TChart1.Tools.Items(0).asColorLine.Value
Is this the correct way of implementing this or is there an easier way of doing it?
Many Thanks,
Reza.