Menu Command, Shortcut Keys, and Resources
Posted: Sun Feb 12, 2006 6:55 am
Just discovered something interesting.
The shortcut key underline or prompt on a menu item is only displayed if the user presses the Alt key i.e. the current menu item is highlighted and the letter that you have defined using '&' as the shortcut key is underlined. If you just use the mouse to select menu items these shortcut key underlines or prompts are not dispayed.
OK so far.
But if you use the 'Resource' statement to display a small bitmap to the left of your menu item then that menu item has the shortcut key underline or prompt displayed always - regardless of whether or not you are using the mouse or have used the Alt key to access the menu.
The end result is that if you have used your mouse to access the menu only those menuitems that use a resource to display a bitmap to the left of the menuitem have the shortcut key underline or prompt displayed.
Any reason for this?
By the way: what is the correct / recommended size of bitmap to use for a menuitem prompt resource?
Regards,
Dale.
The shortcut key underline or prompt on a menu item is only displayed if the user presses the Alt key i.e. the current menu item is highlighted and the letter that you have defined using '&' as the shortcut key is underlined. If you just use the mouse to select menu items these shortcut key underlines or prompts are not dispayed.
OK so far.
But if you use the 'Resource' statement to display a small bitmap to the left of your menu item then that menu item has the shortcut key underline or prompt displayed always - regardless of whether or not you are using the mouse or have used the Alt key to access the menu.
The end result is that if you have used your mouse to access the menu only those menuitems that use a resource to display a bitmap to the left of the menuitem have the shortcut key underline or prompt displayed.
Any reason for this?
By the way: what is the correct / recommended size of bitmap to use for a menuitem prompt resource?
Regards,
Dale.