Put a timer on your form, enable it on onShow, disable it in the timer event
and do what you want. Make the timer time out in say 200 ms so you won't
notice much...
This isn't elegant either but it works. The postmessage solution is probably
better.
Cheers,
Deepak
----- Original Message -----
From: "Luke Pascoe" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 5:51 AM
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"