Post a user defined message say UM_AFTERSHOW to self.handle in OnShow event.
Use a flag to make sure you do it only once.

Do your after_show work in a message handler for UM_AFTERSHOW.

Alex


----- Original Message -----
From: "Luke Pascoe" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, 29 March 2001 10:21
Subject: [DUG]: After OnShow


> I have a form.
>
> I want to perform an action (specifically showmodal another form)
> _immediately_ following the show event. For clarity, I mean I want the
form
> to have been painted on screen before doing my action.
>
> Also, I only want to do it once, like OnCreate only happens once. I
thought
> about using the OnActivate event, coupled with a DoneAlready flag, but
this
> doesn't seem very elegant.
>
> Is there a nice way?
>
> ========================================================
>  Luke Pascoe                          Delphi Programmer
>              enSynergy Consulting LTD
>
>  [EMAIL PROTECTED]  +64-9-3551593  fax +64-9-3551590
>  Level 4,   10-12 Federal St,   Auckland,   New Zealand
>  PO Box 32521,  Devonport,  Auckland 1330,  New Zealand
>
> ================== I.H.T.F.P. ==========================
> --------------------------------------------------------------------------
-
>     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"
>

---------------------------------------------------------------------------
    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"

Reply via email to