|
|
Button class options apply to widgets created with VtPushButton(VTCL) and VtToggleButton(VTCL).
The following button class options are available:
The accelerator string format is like that of a translation, but allows only a single keypress event to be specified. For example, to specify the accelerator <Ctrl>N, use the string Ctrl<Key>N.
To activate an accelerator in the character server, the sequence <Ctrl>A needs to be prefixed in the following manner:
Graphical mode | Character mode |
---|---|
<Ctrl>S | <Ctrl>A<Ctrl>S |
<Ctrl>A | <Ctrl>A<Ctrl>A |
<Ctrl>R | <Ctrl>A<Ctrl>R |
<Alt>S | <Ctrl>A-S |
<Alt>A | <Ctrl>A-A |
<Alt>R | <Ctrl>A-R |
To make menu functions even more convenient, menus can have mnemonics associated with them. A mnemonic is a letter in a menu button label that can be pressed to activate the button. The first character in the label string that exactly matches the mnemonic is underlined when the button is displayed.
Note that when you specify a mnemonic for a pulldown, both the character and graphical servers automatically add ``<Alt>mnemonic'' as an accelerator for the menu.