mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 14:16:22 +02:00
LCL: task dialog: add tfForceNonNative Flag
This commit is contained in:
parent
ff3965e8bc
commit
62cb85cb4b
@ -541,7 +541,8 @@ type
|
||||
tfVerificationFlagChecked, tfShowProgressBar,
|
||||
tfShowMarqueeProgressBar, tfCallbackTimer,
|
||||
tfPositionRelativeToWindow, tfRtlLayout,
|
||||
tfNoDefaultRadioButton, tfCanBeMinimized);
|
||||
tfNoDefaultRadioButton, tfCanBeMinimized,
|
||||
tfForceNonNative);
|
||||
TTaskDialogFlags = set of TTaskDialogFlag;
|
||||
|
||||
TTaskDialogCommonButton = (tcbOk, tcbYes, tcbNo, tcbCancel, tcbRetry, tcbClose);
|
||||
|
@ -240,7 +240,7 @@ begin
|
||||
TaskDlg.Verify := VerificationText;
|
||||
|
||||
ButtonID := TaskDlg.Execute(TD_COMMONBUTTONS(CommonButtons), DefBtn, TD_FLAGS(Flags), TF_DIALOGICON(MainIcon), TF_FOOTERICON(FooterIcon),
|
||||
DefRB, 0, ParentWnd, False, False, @DoOnButtonClickedHandler);
|
||||
DefRB, 0, ParentWnd, tfForceNonNative in Flags, False, @DoOnButtonClickedHandler);
|
||||
Result := ButtonID>=0;
|
||||
FModalResult := ButtonIDToModalResult(ButtonID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user