[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif and CDE 2.1 Style Guide Certification Checklist
Spin Box (Control)
[ ]A spin box should consist of a pair of arrow buttons, plus one or more
fields, each of which allow a user to choose among one of a mutually exclusive
set of values.
[ ]Each field in a spin box should be either a text-entry field, a
text-display field, or a label, and always takes focus (even when it is a
label).
[ ]The arrow buttons in a spin box should represent action choices whose
actions spin some field in the spin box. The arrow buttons do not take focus.
[ ]The pair of arrow buttons in a spin box should be either horizontal (one
points left and one points right) or vertical (one points up and one points
down).
[ ]If a spin box contains multiple fields, make either all of them tab groups
or none of them.
[ ]If a spin box is a tab group, then allow the user to use tab group
navigation to move focus to the field in the spin box that last had focus.
[ ]When an explicit focus policy is in use and focus is on the spin box and
the user presses the SELECT button on one of the arrow buttons, change the
value of the field in the spin box that has focus.
[ ]When an explicit focus policy is in use and focus is not in the spin box
and the user presses the SELECT button on one of the arrow buttons, change the
value of the field in the spin box that last had focus and move focus to it.
[ ]When an implicit focus policy is in use and the user presses the SELECT
button on one of the arrow buttons in the spin box, change the value of the
field in which the user last pressed SELECT.
[ ]When the user presses the SELECT button on a left- or upwards-pointing
arrow, spin backwards through values in the designated field; on a right- or
downwards-pointing arrow, spin forward through the values.
[ ]Spinning forward through the legal values of a spin box field works in the
following ways:
When the values are ordered chronologically, moving forward moves to the
next value chronologically. For example, if TUESDAY is currently displayed,
display WEDNESDAY when the user presses the right or down arrow.
When the values are ordered alphabetically, moving forward moves to the
next value in lexicographic order. For example, for a field used to pick a
font from an alphabetically organized list, if CHICAGO is currently displayed,
display COURIER when the user presses the right or down arrow.
When the values represent numbers or magnitudes, moving forward moves to a
larger value or magnitude. For example, if 15 is currently displayed, display
16 when the user presses the right or down arrow.
[ ]If a spin box uses horizontal arrows and it has focus, allow > and
< to spin forward and backward, respectively, through the field that
has focus.
[ ]If a spin box uses horizontal arrows and contains a text-entry field,
allow the user to enter and delete characters at the end of that field, but do
not allow < and > to move the cursor through the field.
[ ]If a spin box uses horizontal arrows, then allow Home and End to spin the
field that has focus to its first or last legal value, respectively.
[ ]If a spin box uses horizontal arrows and is a tab group or contains
multiple fields (all of which are tab groups), then ^ should have the
same effect as < and V should have the same effect as >.
[ ]If a spin box uses horizontal arrows and contains multiple fields (none of
which are tab groups), then allow Ctrl < and Ctrl > to move
focus among the fields, wrapping at the edges.
[ ]If a spin button has vertical arrows and contains a text field, it is a
tab group.
[ ]If a spin box uses vertical arrows and contains multiple fields, then
either the spin box is a tab group or all of the fields are tab groups.
[ ]If a spin box uses vertical arrows, then when focus is in the spin box,
allow V and ^, respectively, to spin forward and backward
through the field that has focus.
[ ]If a spin box uses vertical arrows, then allow Ctrl Home and Ctrl End to
spin the field that has focus to its first or last legal values, respectively.
[ ]If a spin box uses vertical arrows, contains multiple fields (none of
which are tab groups), and focus is on a field that is a label, allow <
and > to move focus to the next field to the left or right,
respectively, wrapping at the ends of the spin box.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]