10-15-2009 02:04 AM
How can I assign Accelerator key to popup windows for Dialog.Ask function. (OK,Cancel) buttons in popup window. I want to set shortcut for OK button and Cancel button. How to achieve the shortcut functionality in the popup window. I have tried Button field in mainscreen using Key Listener it works fine. But I want to achieve the same thing in Popup window. Can any one suggest me thanks in advance..
01-18-2010 12:21 AM - edited 01-18-2010 12:27 AM
I want to assisgn a key board shortcut (Accelerator) to a menu.
I added the unicode character as "MyM\u0332enu" but it did not work.
In the .rrc file the character shows an underline but on the 8100 simulator pressing the character "M" key did not work.
01-18-2010 08:43 AM
I suggest you programmatically create a test menu item with "MyM\u0332enu" as its name. It might be that there's a problem with defining the underscore character in a resource file.
01-19-2010 01:43 AM
The shortcut should work once the menu is displayed (pressing M will select the "MyMenu" menu item). Are you by any chance trying to make it work when the menu is not displayed?
01-19-2010 02:34 AM
No, I can see the menu with an under score.
I have added a menu like this on the message list main screen.
I have Pearl 8100 model which has 'E' and 'R' on the same key. My menu "File message" opens a list box once clicked. When I am pressing 'E' the the selction is routing between "Reply" and "Reconcile Now" (because R is on the same key where the E is). It is no way selecting to my menu "File message".
I was expecting pressing 'E' will be equaivalent to clicking the menu and opening the list box which my menu does.
01-19-2010 03:33 AM
Hm... I've just discovered that on my Bold 9700 with v5.0 handheld software, the menu shortcuts work only if the very first letter of the menu item is underscored... I suppose you're experiencing the same issue.
If you want the shortcut to work without opening the menu, you'll need to add some code into Screen.keyDown(). But that doesn't appear to be an option for you, since you are adding a menu item to another application...
01-19-2010 04:02 AM
Even that did not work.
I am now using first letter 'F' as the underscored one but pressing F just traversing between File message, File, Forward As.
My OS is v126.96.36.199.
01-19-2010 04:06 AM
May be the shortcut-via-underscore approach doesn't work for non-RIM application menu items (as opposed to conventional menu items that you add to your own application)...