mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 13:18:29 +02:00
TTaskDialog: add tfEmulateClassicStyle to flags
This commit is contained in:
parent
a35432bf68
commit
57c8514e04
@ -544,7 +544,7 @@ type
|
||||
tfShowMarqueeProgressBar, tfCallbackTimer,
|
||||
tfPositionRelativeToWindow, tfRtlLayout,
|
||||
tfNoDefaultRadioButton, tfCanBeMinimized,
|
||||
tfForceNonNative);
|
||||
tfForceNonNative, tfEmulateClassicStyle);
|
||||
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, FWidth, ParentWnd, tfForceNonNative in Flags, False, @DoOnButtonClickedHandler);
|
||||
DefRB, FWidth, ParentWnd, tfForceNonNative in Flags, tfEmulateClassicStyle in Flags, @DoOnButtonClickedHandler);
|
||||
Result := ButtonID>=0;
|
||||
FModalResult := ButtonIDToModalResult(ButtonID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user