Vcl.Dialogs.TCustomTaskDialog.Execute
Delphi
function Execute: Boolean; overload; dynamic;
function Execute(ParentWnd: HWND): Boolean; overload; dynamic;
C++
DYNAMIC bool __fastcall Execute()/* overload */;
DYNAMIC bool __fastcall Execute(HWND ParentWnd)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TCustomTaskDialog |
Description
Displays the Task Dialog.
Use Execute to display the Task Dialog. Execute opens the task-selection dialog, returning true when the user selects a task and clicks Open. If the user clicks Cancel, Execute returns false.
The ParentWnd parameter is a window handle of type HWND MSDN. If none is provided, the current form handle is used, accessed from Vcl.Forms.TApplication.ActiveFormHandle in the global variable Vcl.Forms.Application.