I have an indicator in a custom form instance that is opened within OnStartup, and I wish to save the form location (window position) with the workspace. This is an unsupported coding level so i am crossing my fingers someone has paved the way.
I have observed some third party vendors have been able to serialise the form location within the workspace XML. For this to occur one either has to update indicator properties from within the indicator callbacks such as OnTermination, with the form location coordinates in order to serialise the location of the window using the (inbuilt) Ninja XML serialisation code which I assume exists..... Or
Are they writing to the workspace XML with a seperate XMLSerialize call? If so is there a save workspace callback to do this within?
I think the first option is most likely how it is done, but I just cannot figure out how to change indicator properties (as viewed in the GridControl) on the fly and do not understand the order of events indicator properties are serialised. Serialisation threads do not cover this btw.
If I can add a non browsable Location property to my indicator and update it as my form is moved, this should do the trick, however I am thinking the Indicator properties cannot be written to after the Indicator Initialize method has completed.
Thank you for any assistance.
Comment