[DUG] Delphi internals - form events

Wilkin, Kurt Kurt.Wilkin at fnzc.co.nz
Thu Aug 11 03:03:44 NZST 2005


My standard shortcut was to have a boolean test in the onActivate.
Set it in the create, and negate it as soon as you've tested :

//onActivate:
if StartUp then
	StartUp := false;
	//do this stuff once only
end;

Cheers, Kurt.

on Thursday, 11 August 2005 12:03 a.m. delphi-bounces at ns3.123.co.nz
wrote: 
> 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.
> 












-- 
This electronic message together with any attachments is confidential and
intended for the named recipient's use only.  If you are not the intended
recipient (i) do not copy, disclose or use the contents in any way, (ii)
please let us know by return email immediately then destroy the message, and
any hard copies of the message, and any attachments.  The sender of this
message is not responsible for any changes made to this message and/or any
attachments and/or connection linkages to the Internet referred to in this
message after it has been sent.  Unless otherwise stated, any pricing
information given in this message and/or attachments is indicative only, is
subject to change and does not constitute an offer to buy or sell securities
or derivatives at any price quoted.  Any reference to the terms of executed
transactions should be treated as preliminary only and subject to separate
formal written notification.  Where reference is made to research material
and/or research recommendations, the basis of the provision of such research
material and/or recommendations is set out in the relevant disclaimer.



More information about the Delphi mailing list