Le 17 août 06 à 00:03 Matin, Frank Condello a écrit:
I've got an option in my app to disable menu shortcuts (it's a game
engine that lets you bind any key to any action so this prevents
accidental quits/hides etc. if the command key is bound). Using
MenuItem.KeyboardShortcut does the trick for "normal" menus, but
doesn't work for QuitMenuItem, or PrefsMenuItem, and since RB
recreates menus like mad declares are useless, and this renders
system supplied menus untouchable - like Hide...
The only way I can remove the key-combos from Quit/Hide is to
create "fake" menu items that use those same key combos - this
isn't a usable solution however.
Any ideas on how to accomplish this?
For the Quit and prefs menu items, you can access them directly,
can't you?
FileQuit.KeyboardShortcut=""
For the hide menu item, I don't even know if MacOS X allows you to
change it._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>