you can hide the form before it is activated; Hence OnActive/CM_ACTIVATE.
To get rid of the annoying blink that occurs when the form is initially
shown, then you might want to offset the position of the form so that it is
initially displayed outside the boundary of the screen.

Hope this helps.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Alistair George
Sent: Saturday, 7 June 2003 8:22 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Form not shown


Hi All.
FYI had been having some problems with starting a program and minimizing the
form to tray prior to the show event. This can cause major problems when
some
code tries to call the window handle. The easy resolution is to show the
form
first the quickly hide it.
In  the  past I thought  that  it was annoying and slack programming that so
many
programs start this way but now understand why.

This requirement makes the intilization part a bit harder, as the form has
to
show prior to being minimized, and you cant hide the form in the show event.
Any punters on how to hide the form after it has shown (without using a
timer)?
What I have done is set the mainform.tag in show, and later if that tag is
not set then quickly show/hide the form.

Al+

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to