Modal dialogs
- Last Updated: May 30, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The ShowDialog( ) method on
the form is used in the WAIT-FOR statement to display and
wait for a modal .NET dialog box. If you display the modal
dialog box within an existing .NET event loop, the nested WAIT-FOR must
be satisfied before returning to the outer WAIT-FOR. The
application ends the WAIT-FOR by calling the Close( ) method
on the modal form object.
In this example, the rDateForm form
is created and displayed as a modal dialog using the ShowDialog( ) method:
|
This is an example of the WAIT-FOR statement
for a modal dialog in which the parent form is specified:
|
ParentFormObjectRef is an object
reference to the dialog's parent form. This version of the ShowDialog( ) method
allows the dialog to display centered over the parent form.