Projects/Usability/HIG/CheckBox: Difference between revisions

From KDE TechBase
< Projects‎ | Usability‎ | HIG
(→‎Guidelines: typo--)
(→‎Guidelines: Group guidelines in different sections, add link to Form_Label_Alignment)
Line 8: Line 8:


== Guidelines ==
== Guidelines ==
=== How to use ===
* Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of [[Projects/Usability/HIG/Radio_Buttons| radio buttons]] or a [[Projects/Usability/HIG/Combo_Box| combo box]].
* Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of [[Projects/Usability/HIG/Radio_Buttons| radio buttons]] or a [[Projects/Usability/HIG/Combo_Box| combo box]].
* Don't use a check box if the opposite is ambiguous.
* Don't use a check box if the opposite is ambiguous.
* For more than 10 options, use a list.
* Don't use a check box for more than 10 options, use a list.
* Don't use the selection to perform commands or to dynamically display other controls and windows.
* Don't use the selection to perform commands or to dynamically display other controls and windows.
* Checking a check box should always "enable" an option or change the state of an option to "on".  Checking a negative or disabling option is a double negative and causes confusion and errors.
* Checking a check box should always "enable" an option or change the state of an option to "on".  Checking a negative or disabling option is a double negative and causes confusion and errors.
=== Mixed state ===
* Use the mixed state only to indicate that an option is set for some, but not all, child objects. Mixed state must not be used to represent a third state.
* Use the mixed state only to indicate that an option is set for some, but not all, child objects. Mixed state must not be used to represent a third state.
* Users must not be able to set a mixed state directly.
* Users must not be able to set a mixed state directly.
* Clicking a mixed state check box enables all child objects.  
* Clicking a mixed state check box enables all child objects.
* Align groups of check boxes vertically rather than horizontally, as this makes them easier to scan visually. Use horizontal or rectangular alignments only if they greatly improve the layout of the window.  
 
* Check box labels are in [[Projects/Usability/HIG/Capitalization|sentence style capitalization]]
=== Appearance ===
* Align groups of check boxes vertically rather than horizontally, as this makes them easier to scan visually. Use horizontal or rectangular alignments only if they greatly improve the layout of the window.
* Check box labels are in [[Projects/Usability/HIG/Capitalization|sentence style capitalization]].
* For layout directions, see [[Projects/Usability/HIG/Form_Label_Alignment#Checkboxes]].


== Code snippets ==
== Code snippets ==
to be done
to be done

Revision as of 12:56, 31 May 2013


Purpose

A check box is a control that permits the user to make multiple selections from a number of options. Check boxes are used to toggle an option on or off, or to select or deselect an item. Users make a decision between two clearly opposite choices (on (vs. off), apply (vs. don't apply), show (vs. hide). etc.).

Examples

to be done

Guidelines

How to use

  • Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of radio buttons or a combo box.
  • Don't use a check box if the opposite is ambiguous.
  • Don't use a check box for more than 10 options, use a list.
  • Don't use the selection to perform commands or to dynamically display other controls and windows.
  • Checking a check box should always "enable" an option or change the state of an option to "on". Checking a negative or disabling option is a double negative and causes confusion and errors.

Mixed state

  • Use the mixed state only to indicate that an option is set for some, but not all, child objects. Mixed state must not be used to represent a third state.
  • Users must not be able to set a mixed state directly.
  • Clicking a mixed state check box enables all child objects.

Appearance

Code snippets

to be done