Loading modified form

Hi,

I am using the IDEEngine and associated components to design a form and script.  I then save the form and script to separate streams.

I then try to load the modified form from its stream using TIDEFormDesigner.LoadFromStream.  This fails to load controls which I have added to the form at design time.

However if I first run the form designer without actually designing the form, close it, and then try loading the modified form from the same stream, it loads all controls correctly.

It is as though loading the form designer has made some small change to the Delphi streaming system, but I can't see what it is.

Have you any ideas as to what I am doing wrong?

Many thanks.

David Hartley

I have answered my own question as follows.

It seems that you have to have an instance of TIDEEngine available and register the controls you have added to the form with it.  Then set IDEEngine.FormDesigner to the instance of TFormDesigner which you use to load the stored form.  Now any new controls you have added to the stored form will be recognized and created.