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

TCustomTaskDialog.DoExecute

Performs actions to configure and execute the dialog using the wrapper in the LCLTaskDialog unit.

Declaration

Source position: dialogs.pp line 642

protected function TCustomTaskDialog.DoExecute(

  ParentWnd: HWND

):Boolean; dynamic;

Arguments

ParentWnd

  

Handle for the Parent Window of the dialog.

Function result

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

Description

DoExecute is a dynamic Boolean function used to initialize and execute the task dialog. It ensures that the index for the default Buttons and RadioButtons are updated before executing the task dialog. It also builds the delimited list of captions for each of the items in Buttons and RadioButtons. The lists use the format needed for the task dialog wrapper (#10 is the delimiter).

Property values are copied to the members in the TTaskDialog instance, including:

DoExecute calls the Execute method in the TTaskDialog wrapper. The return value is True if the ModalResult value contains a valid button identifier defined in the Buttons for the dialog.

DoExecute is called from the Execute method.

See also

TCustomTaskDialog.Execute

  

Displays the dialog and captures the modal result value.

TCustomTaskDialog.Flags

  

Set of options enabled for the Task dialog.

TCustomTaskDialog.Buttons

  

Collection with the buttons for the Task dialog.

TCustomTaskDialog.RadioButtons

  

Collection with the optional radio buttons defined for the Task dialog.

TCustomTaskDialog.ExpandButtonCaption

  

Caption displayed for the expand/collapse button on the dialog.

TCustomTaskDialog.ExpandedText

  

Text that is displayed in the expandable / collapsible area on the Task dialog.

TCustomTaskDialog.FooterText

  

Text that is displayed in the footer area on the Task dialog.

TCustomTaskDialog.Text

  

Text displayed as main content for the Task dialog.

TCustomTaskDialog.VerificationText

  

Optional caption text for the check box displayed at the bottom of the Task dialog.

TCustomTaskDialog.Caption

  

Caption text displayed on the title bar for the Task dialog.

TCustomTaskDialog.Title

  

Header text displayed at the top of dialog, with a larger font size and using a bold font style.

TCustomTaskDialog.ModalResult

  

Modal result value returned when the Task dialog was executed.

TTaskDialog

  

Implements a task dialog.