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

Execute

Method used to display and execute the extended task dialog.

Declaration

Source position: lcltaskdialog.pas line 387

function TTaskDialogEx.Execute(

  aParent: HWND = 0

):Integer;

Arguments

aParent

  

Handle for the window which is the parent for the dialog. 0 (the default) is the unassigned value.

Function result

Modal result value for the dialog. Contains the identifier for the button clicked on the dialog.

Description

Execute is an Integer function used to display the dialog and capture its result. It is a wrapper around the TTaskDialog.Execute method. TTaskDialogEx passes its member values as arguments to the Execute method in the base TTaskDialog type.

Before calling Execute, assign a routine to the OnButtonClicked event handler to perform actions needed for a specific button clicked on the dialog.

The return value contains the modal result value returned from the base task dialog.

See also

TTaskDialog.Execute

  

Launches the task dialog form.


Version 4.0 Generated 2025-05-03 Home