For Mac newbies like me: Menu stuff
Posted: Fri Nov 08, 2013 8:44 am
Hi,
since I have no 'Apple Key' in my VirtualBox on a PC, I can not really test these stuff.
I created the menu and Quit and Preferences was at the right place but...
no keyboard shortcut.
The problem came from my multilanguage stuff.
At menu creation time the explicit shortcut is not neccessary, it simply works. Ok.
But when I set later an other text with SetMenuItemText() the keyboard shortcuts like 'Cmd+Q' are mandatory.
As newbie without Mac knowledge it costs me a lot of time to find this out.
Bernd
P.S.: Maybe that's a feature request, that with #PB_Menu_Preferences and #PB_Menu_Quit as SetMenuItemText()
parameter the keyboard shortcuts are added automatically.
since I have no 'Apple Key' in my VirtualBox on a PC, I can not really test these stuff.
I created the menu and Quit and Preferences was at the right place but...
no keyboard shortcut.
The problem came from my multilanguage stuff.
At menu creation time the explicit shortcut is not neccessary, it simply works. Ok.
But when I set later an other text with SetMenuItemText() the keyboard shortcuts like 'Cmd+Q' are mandatory.
As newbie without Mac knowledge it costs me a lot of time to find this out.
Bernd
P.S.: Maybe that's a feature request, that with #PB_Menu_Preferences and #PB_Menu_Quit as SetMenuItemText()
parameter the keyboard shortcuts are added automatically.