The
Windows Interface
|
shift+F8 | Turns on add mode. This allows the focus indicator to move independently of the selection highlight. |
spacebar | Toggles the selection state of the item with focus and sets a new anchor point at the item without deselecting other items. |
shift+ navigation | Propagates the selection state of the item at the current anchor point. |
shift+ click | Propagates the selection state of the item at the current anchor point. |
When no modifier key or special mode is in effect, extended-selection lists behave like single-selection lists.
Note: Please see the Microsoft Design Guide for a discussion of using check boxes in multiple-selection lists.
Text Boxes
A text box is an edit control that accepts text input from the user. The user can accept the current text, edit it, delete it, or replace it. Text boxes may be one or many lines high. Text boxes are usually one line high. Selection of text within a text box follows the standard selection techniques described in Section 3 of this document and Chapter 3 of the Microsoft Design Guide.
Keyboard techniques for moving within a text box that has focus are as follows.
Left Arrow | Moves insertion point one character to the left. |
Left Arrow+ctrl | Moves insertion point to the beginning of the text. |
Right Arrow | Moves insertion point one character to the right. |
Right Arrow+ctrl | Moves insertion point to the end of the text. |
The mnemonic access key or tab moves focus to a text box through the keyboard. When a text box gets focus by means of a keyboard technique, the text should be highlighted and the insertion point should be placed in the box at the end of the highlighted contents. When a text box gets focus by a mouse click, an insertion point should be placed inside the box as near as possible to the click location; the contents should not be highlighted.
If a text box is not available (e.g., because of the state of the application), its label should appear dimmed.
Fixed-length auto-exit text boxes can accelerate data entry by moving focus to the next control as soon as the last character of fixed length data is entered.
Combo Boxes
A combo box is useful when an application requires user input and can display a list of possible responses. The user can type a response in the text box if the correct one is not available in the list. There are two types of combo boxes: standard and drop-down.
The entries in the list should be in alphabetical order unless there is a compelling reason to use a different order (e.g., chronological order for dates). When space is at a premium in the dialog box, use a drop-down combo box.
Spin Boxes
Spin boxes are specialized text boxes that accept a limited set of discrete, ordered input values. Spin boxes may be used to display values that consist of several sub-components (e.g., date). In such cases the text box is divided into subfields (e.g., month, day, year). The subfields are separated by appropriate separator characters (e.g., / for date).
Static Text Fields
Static text fields are used to present read-only textual information. These fields are static in that the user cannot alter the text. However, the application may alter the text to indicate the current state of the application.
Group Boxes
Although group boxes do not process mouse or keyboard input, they are technically considered controls. They are used to provide visual grouping of related controls.
Control Labels
The following are suggested guidelines for control labels.
1) Capitalize the first and last words of labels. Capitalize initial letters of all other words except articles (e.g., a, and, the), coordinate conjunctions (e.g. and, or, nor, for), prepositions (e.g., by, with) and the to in infinitives.
2) Provide unique mnemonic access character for controls to which the user needs direct keyboard access. If possible, use the first character of the label except when
(1) another letter offers a stronger mnemonic link; or
(2) the label contains multiple words and a word other than the first offers a stronger mnemonic link; or
(3) the first character of the first word has already been used for another control.
3) Dim the label of controls that become unavailable or inapplicable.
4) Use bold font so dimmed labels remain legible.
5) Position control labels according to the following rules.
Command button | Inside button. |
Check box | To right of box. |
Option button | To right of button. |
Text box | Above or to the left of the text box followed by a colon and left-aligned with the section of the dialog box in which it appears. |
Spin box | Above or to the left of the spin box followed by a colon and left-aligned with the section of the dialog box in which it appears. |
List box | Above or to the left of the list box followed by a colon and left-aligned with the section of the dialog box in which it appears. |
Combo box | Above or to the left of the combo box followed by a colon and left-aligned with the section of the dialog box in which it appears. |
Group box | On top of (and replacing) part of the top frame line, starting just after the upper left corner (do not center on the box). |
Validation of Input
Applications can validate input into controls or other dialog settings either
1) immediately; or
2) after the control loses focus; or
3) when the dialog is submitted.
Generally, the first two techniques provide better feedback because the user remains in the context. However, these first two techniques may not be appropriate when data values cannot be processed individually.
Valid input can be controlled by the type of control used to receive the input. Controls such as option buttons, check boxes, and drop-down lists limit the type of input to valid values. Other types of controls provide greater flexibility when the complete set of valid values cannot be predefined.