Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   TMainmenu Shortcuts auf MacOS (https://www.delphipraxis.net/209209-tmainmenu-shortcuts-auf-macos.html)

CHackbart 9. Nov 2021 19:26

TMainmenu Shortcuts auf MacOS
 
Hi,

ist es eigentlich jemanden aufgefallen, dass die Shortcuts auf dem Mac in der Menüleiste in Delphi 11 (Update 1) nicht mehr richtig dargestellt werden? Command, Option und Control werden gar nicht mehr dargestellt. Dummerweise habe ich keine ältere Delphi Version hier auf meiner VM, aber ich bin mir sicher, dass ist erst seit Delphi 11 der Fall.

Christian

Delphi.Narium 9. Nov 2021 19:47

AW: TMainmenu Shortcuts auf MacOS
 
Hilft das Representing Keys and Shortcuts?
Zitat:

Zitat von Representing Modifier Keys
Most computers running Windows do not have a CMD key, just as most computers running macOS do not have a CTRL key. Mind this when you configure the shortcuts of your application. You may need to define your shortcuts at run time and use conditional compilation to set the right shortcut for each platform. For example:

Delphi-Quellcode:
{$IF defined(MSWINDOWS)}
    MenuItem1.ShortCut := TextToShortCut('Ctrl+N');
{$ELSEIF defined(MACOS) and not defined(IOS)}
    MenuItem1.ShortCut := TextToShortCut('Cmd+N');
{$ENDIF}

CHackbart 9. Nov 2021 20:36

AW: TMainmenu Shortcuts auf MacOS
 
Liste der Anhänge anzeigen (Anzahl: 1)
Danke,

aber das ist es leider nicht. Auch bei Untermenüs fehlt der Pfeil nach rechts.
In dem Screenshot sollte eigentlich ein CMD+Alt+1 zu sehen sein, bzw. CMD+Alt+2 usw. Das ging definitiv in der letzten Delphiversion noch, zumindest gehen die alten kompilierten Projekte noch wie sie sollten.

Christian

CHackbart 11. Nov 2021 20:10

AW: TMainmenu Shortcuts auf MacOS
 
Ein Nachtrag. Ich habe meine Testversion auf einem älteren Mac getestet der High Sierra als System verwendet und da wird das Menü angezeigt.Ich hab testweise mal einige meiner Apps auf Monterey getestet und die haben das selbe Problem. Unter Big Sur ist mir das nicht aufgefallen, wahrscheinlich ist das erst ab dem aktuellen OS so ein Problem.

Christian

MEissing 11. Nov 2021 21:26

AW: TMainmenu Shortcuts auf MacOS
 
Monterey wird zZ von Delphi nicht unterstützt. Wir arbeiten dran.

CHackbart 12. Nov 2021 12:49

AW: TMainmenu Shortcuts auf MacOS
 
Vielen Dank für die Antwort. Im Groben sind mir bis jetzt nur 2 Dinge bei meinen Tests aufgefallen. Einer war das mit den Shortcuts, der andere ist aber auch auf älteren Systemen reproduzierbar.

https://quality.embarcadero.com/browse/RSP-36202

Christian


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:03 Uhr.

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