Tinygoldwing Posted February 22, 2021 Share Posted February 22, 2021 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 More sharing options...
herculanojs Posted February 26, 2021 Share Posted February 26, 2021 What's the problem? Link to comment Share on other sites More sharing options...
Tinygoldwing Posted February 26, 2021 Author Share Posted February 26, 2021 Thanks I figured it out. Had to set EnableSynchronousOperations := True; Link to comment Share on other sites More sharing options...
Jeevika Posted October 25, 2023 Share Posted October 25, 2023 This code snippet demonstrates pausing processing, emulating the behavior of a regular desktop application, by displaying a modal form, which temporarily suspends user interaction until the form is closed. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now