Clicking on a title of a menu in the menu bar opens that menu. Clicking on a plain menu item selects and activates it. Moving the pointer on top of a menu item with a submenu, then pausing, opens the menu item's submenu.
LibCXXW's menus are fully keyboard-accessible. The menu titles in the menu bar are tabbable. Their tabbing order always precede any tabbable widgets in the main window. Enter with a menu title receiving input focus opens the submenu, and Cursor-Down selects the menu's first enabled item. Esc closes the opened menu. Up and down cursor keys navigate the menu's items, with Enter either selecting the highlighted menu item or opening its sub-menu. The keyboard focus automatically shifts to the opened sub-menu, and Cursor-Down selects the sub-menu's first enabled item. Esc closes the sub-menu.
l->enabled(4, false);
A disabled menu item is not selectable via the pointer or the keyboard. Disabled menu items have a dithered, faint, appearance like all disabled widgets.
Prev | Up | Next |
Using the list layout manager with menus | Table Of Contents | Chapter 25. Context popup menus |