Sign in Join
FPDoc Onlineexperiment

TCommonDialog.Execute function

Member of TCommonDialogpublicIn unit Dialogs

Displays the dialog and captures the result.

Declaration

pascal
function Execute: Boolean; virtual

Function result

Returns True if the user pressed the OK button.

Description

Use the Execute method to display the dialog and capture the result.

Execute notifies the Application that a modal display is started, and disables the current form. The widgetset handle is allocated for the dialog, and the DoExecute method is called to process the modal dialog. The form is re-enabled and its active control is re-selected. The Application is notified that the modal display is completed.

The return value is set to True if the OK button was pressed to exit the dialog.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.