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

Execute

Declaration

Source position: lcltaskdialog.pas line 332

function TTaskDialog.Execute(

  aCommonButtons: TCommonButtons = [];

  aButtonDef: Integer = 0;

  aFlags: TTaskDialogFlags = [];

  aDialogIcon: TTaskDialogIcon = tiInformation;

  aFooterIcon: TTaskDialogFooterIcon = tfiWarning;

  aRadioDef: Integer = 0;

  aWidth: Integer = 0;

  aParent: HWND = 0;

  aNonNative: Boolean = False;

  aEmulateClassicStyle: Boolean = False;

  aOnButtonClicked: TTaskDialogButtonClickedEvent = Nil

):Integer;

Description

Launches the TaskDialog form.

Some common buttons can be set via aCommonButtons. In emulation mode, aFlags will handle only tdfUseCommandLinks, tdfUseCommandLinksNoIcon, and tdfQuery options.

Will return 0 on error, or the Button ID (e.g. mrOk for the OK button or 100 for the first custom button defined in Buttons string).

If Buttons was defined, aButtonDef can set the selected Button ID. If Radios was defined, aRadioDef can set the selected Radio ID.

aDialogIcon and aFooterIcon are used to specify the displayed icons.

aWidth can be used to force a custom form width (in pixels).

aParent can be set to any HWND - by default, Application.DialogHandle.

If aNonNative is TRUE, the Delphi emulation code will always be used. aEmulateClassicStyle can be set to enforce conformity with the non themed user interface - see @http://synopse.info/forum/viewtopic.php?pid=2867#p2867.

aOnButtonClicked can be set to a callback executed when a button is clicked.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.