My problem is as follows:
I have several objects, each derived form TGUIObject, which by itself derives from TImage.
What I want to be able to do is save such an object to a file and then load it back, calling the _right_ constructor.
For example, when I load the file I will know whether the object stored inside is TGUIObjectsEditor, TGUIObjectsContainer, etc... This without using:
if ClassName = 'FDGDF' then FDGDF.Create,...
if ClassName = 'AAAAA' then AAAAA.Create...
or any array containing these objects.
Thanks in advance for any help, Amit.