Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi FMX MessageDialog Buttons (https://www.delphipraxis.net/210863-fmx-messagedialog-buttons.html)

BerndS 23. Jun 2022 08:33

FMX MessageDialog Buttons
 
Hallo,
mir ist aufgefallen, dass ein
Delphi-Quellcode:
 TDialogService.MessageDialog(DeleteMSG, TMsgDlgType.mtConfirmation,
      [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo, TMsgDlgBtn.mbAbort], TMsgDlgBtn.mbNo, 0, ...
nicht wie erwartet die drei Buttons angezeigt werden, sondern nur ein [OK] Button.
Ohne TMsgDlgBtn.mbAbort sind die Buttons [Ja] und [Nein] vorhanden.

himitsu 23. Jun 2022 08:49

AW: FMX MessageDialog Buttons
 
Jo, seh ich auch :stupid:

Delphi-Quellcode:
procedure TForm21.FormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single);
begin
  TDialogService.MessageDialog('hallo', TMsgDlgType.mtConfirmation,
    [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo, TMsgDlgBtn.mbAbort], TMsgDlgBtn.mbNo, 0,
    procedure(const AResult: TModalResult)
    begin

    end);
end;
Was aber auch verständlich ist, denn wenn ich mir in Fmx.Dialogs.Win das TFMXDialogService.MessageDialog ansehe, dann wird mir schlecht.


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz