Usually, when you open a dialog using ShowModal, the execution of the current thread stops until the dialog is closed. I want to display the Modal dialog, but continue to execute the current thread while the dialog is still open.
In βModalβ I just want to say that the user cannot interact with any other forms of the application until the modal dialog closes.
The Delphi ShowModal function provides a slightly different definition of "Modal" to the one I need:
A modal form is one where the application cannot continue to work until the form is closed.
I currently have code like this:
dialog.Parent:=self; dialog.Show;
This works, except that I can still interact with the parent window (move it, close it, etc.).
How to show a form that prevents the user from interacting with the parent window without using ShowModal?
delphi
awmross
source share