How about just using the form to show the progress of the operation and
doing the compressing in the parent form. Thus just doint form.show and not
showmodal and then updating the status of the progress form from the main
process. I use it a lot with progress forms.

Riaan Stander 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rainer von Saleski
Sent: Saturday 10 September 2005 23:06
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

Reply via email to