The sample pull-down in the previous section shows a variety of choice definitions. Choices can be disabled, checked, or static.
If a choice is: |
It is: |
disabled |
grayed and cannot be selected. |
checked |
displayed with a checkmark to its left. |
static |
used for informational purposes only and cannot be selected. |
In addition to the mnemonic character (see Mnemonics) the text can also include the tab escape sequence “\t” This tab left aligns a second column of text following the escape sequence. You cannot use the tab escape sequence with a static choice.
In the example for the Options pull-down, the first group of choices has corresponding accelerator keys that are tabbed over to the second column. Tab stops cannot be set when using \t in pull-down choices. Instead, the operating system uses the text strings in all the choices to find a column in which to line everything up. Tab stops cannot be used before the mnemonic character.
Choices can have an associated parameter (see Item Parameters). In addition, accelerator keys can be defined for selecting choices (see Accelerator Keys).