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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...