Changeset View
Changeset View
Standalone View
Standalone View
source/components/radiobutton.rst
Show All 37 Lines | 36 | .. container:: | |||
---|---|---|---|---|---|
38 | .. figure:: /img/Radiobutton_Many_Good.qml.png | 38 | .. figure:: /img/Radiobutton_Many_Good.qml.png | ||
39 | :figclass: border | 39 | :figclass: border | ||
40 | 40 | | |||
41 | :noblefir:`GOOD` | 41 | :noblefir:`GOOD` | ||
42 | 42 | | |||
43 | 43 | | |||
44 | - If there are only two options where one is the negation of the other | 44 | - If there are only two options where one is the negation of the other | ||
45 | (e.g. "apply" vs. "do not apply"), consider replacing the radio | 45 | (e.g. "apply" vs. "do not apply"), consider replacing the radio | ||
46 | buttons by one :doc:`check box <checkbox>`. | 46 | buttons by one :doc:`checkbox <checkbox>`. | ||
47 | 47 | | |||
48 | .. container:: flex | 48 | .. container:: flex | ||
49 | 49 | | |||
50 | .. container:: | 50 | .. container:: | ||
51 | 51 | | |||
52 | .. figure:: /img/Radiobutton_Negation_Bad.qml.png | 52 | .. figure:: /img/Radiobutton_Negation_Bad.qml.png | ||
53 | :figclass: border | 53 | :figclass: border | ||
54 | 54 | | |||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | |||||
164 | - If certain controls in a configuration dialog are only relevant if a | 164 | - If certain controls in a configuration dialog are only relevant if a | ||
165 | certain radio button is toggled on (i.e. they are dependent | 165 | certain radio button is toggled on (i.e. they are dependent | ||
166 | controls), disable them instead of hiding them if that radio button | 166 | controls), disable them instead of hiding them if that radio button | ||
167 | is toggled off. | 167 | is toggled off. | ||
168 | 168 | | |||
169 | - Do not separate radio button and label. Clicking on both the button | 169 | - Do not separate radio button and label. Clicking on both the button | ||
170 | and the label should toggle the option. | 170 | and the label should toggle the option. | ||
171 | - Do not add line breaks. If necessary place an additional label below | 171 | - Do not add line breaks. If necessary place an additional label below | ||
172 | the check box. | 172 | the checkbox. | ||
173 | - Label a group of radio buttons with a descriptive caption to the top | 173 | - Label a group of radio buttons with a descriptive caption to the top | ||
174 | left of the group (cf. :doc:`alignment </layout/alignment>`). | 174 | left of the group (cf. :doc:`alignment </layout/alignment>`). | ||
175 | - Create a buddy relation so access keys are assigned. | 175 | - Create a buddy relation so access keys are assigned. | ||
176 | - Use :doc:`sentence style capitalization </style/writing/capitalization>` for radio buttons. | 176 | - Use :doc:`sentence style capitalization </style/writing/capitalization>` for radio buttons. | ||
177 | - Do not use ending punctuation (neither dot nor colon) for group | 177 | - Do not use ending punctuation (neither dot nor colon) for group | ||
178 | label. | 178 | label. |