[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TCustomTaskDialog.Execute

Displays the dialog and captures the modal result value.

Declaration

Source position: dialogs.pp line 646

public function TCustomTaskDialog.Execute: Boolean; dynamic; overload;

function TCustomTaskDialog.Execute(

  ParentWnd: HWND

):Boolean; dynamic; overload;

Function result

True if a valid button identifier was selected in the dialog.

Arguments

ParentWnd

  

Parent window handle used to position the dialog in the LCLTaskDialog wrapper.

Description

Execute is an overloaded Boolean function used to display the dialog and capture the modal result value using the wrapper in the LCLTaskDialog unit. The return value is True if a valid button identifier was selected in the wrapper.

Execute calls the DoExecute method to convert property values in the class instance to the values expected in the TTaskDialog record, and execute the dialog using the LCLTaskDialog wrapper. The value in ModalResult is updated from the Button with the identifier returned from the wrapper.

See also

TCustomTaskDialog.ModalResult

  

Modal result value returned when the Task dialog was executed.

TCustomTaskDialog.Button

  

Not used in the current LCL version.

#lcl.lcltaskdialog.TTaskDialog