XTPKeyboardCuesUse Enumeration
Description
Specifies when to execute keyboard shortcuts for items that have underlined characters used for keyboard navigation, commonly called "Access Keys".
Members
| Member | Description |
|---|---|
| xtpKeyboardCuesUseMenuOnly | Activate the menu, regardless of an underline. Toolbars will never be activated. |
| xtpKeyboardCuesUseAll | Always activate menus and toolbars that have underlined characters indicating an "Access Key" is available. |
| xtpKeyboardCuesUseNone | Never activate menus or toolbars that have underlined characters indicating an "Access Key" is available. |
| xtpKeyboardCuesUseAmpersandOnly | Only activate menus that have underlined characters indicating an "Access Key" is available. A menu item uses an ampersand "&" to indicate which letter in the caption will activate the menu. Toolbars will never be activated. |
Remarks
This will not disable keybindings, only "Access Key". To remove keybindings as well, use the DeleteAll method.
Example
KeyboardCuesUse Sample (Visual Basic)
This sample illustrates how to remove the underline from Access Keys and how to prevent the menus and toolbars from becoming activated using the Alt key.
CommandBars.Options.KeyboardCuesShow = xtpKeyboardCuesShowNever
CommandBars.Options.KeyboardCuesUse = xtpKeyboardCuesUseNone
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.