Jump to content

Pausing processing like a regular desktop app on showmodal form


Tinygoldwing

Recommended Posts

I'm trying to figure out the best method to handle continuing process once a showmodal form is closed.  Much like what a normal desktop app would do.  I was thinking about:

1.  In MainForm click on button to open second form:

procedure TfrmTransport.UniButton3Click(Sender: TObject);
begin
  frmTransport.showmodal;
  ShowMessage('Done');
end;

 I understand  showmodal is different.  Another way I was thinking:

1. Set a string on what window I just opening.
2. Putting code in the MainForm.OnActive so when the mainform becomes active after second form is closed that would say that would allow me to process code after the form is closed.
3. Clearing the string.

Seems like this method is a hack though.  I must be missing something.

Thanks for the help.

Ed

Link to comment
Share on other sites

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...