OnActivate is useful but be careful that it may be fired
repeatedly if the user clicks away from the form and back again.
Check this behaviour.  You may want to prevent the form
getting focus from the mouse etc and activate it only
programmatically.  (OTTOMH)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Robert Meek
Sent: Sunday, 11 September 2005 6:40 PM
To: 'Borland's Delphi Discussion List'
Subject: RE: A form that runs when Shown, with no user action


        Use the Form's OnActivate event, and in your Form's OnShow you may
also have to add a call to YourForm.Setfocus.

from: Robert Meek at: [EMAIL PROTECTED]
dba "Tangentals Design" home of "PoBoy"
freeware Windows apps and utilities
located at: www.TangentalsDesign.com
Proud to be a moderotor for the
"Delphi Programming Lists" at: elists.org


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rainer von Saleski
Sent: Saturday, September 10, 2005 5:06 PM
To: Borland's Delphi Discussion List
Subject: A form that runs when Shown, with no user action

How do I go about having a form that "runs" (does something) when Shown,
with no additional user action (beyond that which caused to form to be
shown)?

When I put my action code inside the OnShow event handler, the form does not
actually display until the actions are complete.  But I want to keep the
user informed during the 60 seconds or so it takes to do the action
(compress a bunch of files into a ZIP file and email it).

This happens at the end of a chain of other events, and if I make the user
press a "Run" button after the form is displayed, half the time the users
forget to press it, and the backup files never get sent.

There must be a simple answer ...

Thanks,
Rainer
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to