John,

I have had a FormCreated event in my subclassed forms since Delphi3. Much of my initialisation code has to go in here. To do this on an adhoc basis, at the start of Formcreate send yourself a message. It will be the first one to arrive just after Create is finished.

John Bird wrote:

Form create versus activate.

If I understand correctly, program initialisation best goes into the create
event.  I have worked out that the onactivate event for a main form fires
every time any second form closes and focus returns to the main form.  Is
there any limitation about what can be put in the create event, I am
wondering because before Delphi I did some FoxPro and there was some things
to do with eg visual properties of components that could not be put in the
Create event as they didn't really exist yet....such things as (I think)
button1.visible:=false.  Does Delphi have this kind of limitation or
anything you cannot do when the form is created but before it is shown?  Any
general hints of what to put in each event would be appreciated.

Thanks

John B
_______________________________________________
Delphi mailing list
[email protected] http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to