File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / BusyBox / English.lproj / HelpFiles / radio Button.rtf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:29 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

{\rtf0\ansi{\fonttbl\f2\fswiss Helvetica;\f1\fmodern Courier;}
\paperw11780
\paperh9540
\margl120
\margr120
{\colortbl\red0\green0\blue0;}
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs36\fc0 Radio buttons
\fs24 \
\
Radio buttons are used to show and set state, not to initiate actions.  A radio button is indicated by a circular icon that's filled in or highlighted when the button is on, and not when the button is unselected.\
\
Radio buttons are always used in groups of 
two or more.  The icon indicates that 
\b no more than one
\b0  
\b button in the group can be on at a time
\b0 ; a button is turned off by turning another one on.  A group of radio buttons should be further constrained to require one (and only one) button to be chosen at all times.  If it's logically possible to not have any of the buttons in the set turned on, the set should be extended to explicitly include �none� as the first or the last choice.  In other words, radio buttons should carry the meaning �one and only one,� rather than �at least one.�\
\

\b Radio Buttons and Pop-Up Lists\

\b0 \
A matrix of radio buttons and a pop-up list have the same semantic:  They each permit the user to choose one and only one setting out of a list of possible choices.  The following considerations enter into the decision whether to implement a set of controls as a pop-up list or as radio buttons:\
\

\pard\tx160\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fi-140\li140\fc0 �	If it's important to conserve space within a window, a pop-up list might be the better choice.\
\
�	If the set of controls will be used frequently, radio buttons might be the better choice, since they're easier to operate and more accessible to the user.\
\
�	When a pop-up list isn't on-screen, only one of its options is displayed.  So, if it's not immediately obvious from just seeing one of the options what the others might be, radio buttons might be the better choice.\
\
�	If there's a problem organizing the controls within a window so that the arrangement doesn't appear too complicated, a pop-up list might be the better choice.  Pop-up lists present the user with less information initially.  They're also easier to lay out in relation to other controls.  For example, a button that brings up a pop-up list can be placed alongside similar buttons that don't control lists.\

\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc0 \

\pard\tx160\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fi-140\li140\fc0 �	A pop-up list usually pops up so that the current selection is under the cursor.  But if the list is long and near the edge of the screen, it shifts so that the entire list can appear on-screen, and this may change the selection under the cursor.  Users might therefore unwittingly make a new selection while intending only to see what's in the list.  If the list will usually pop up near the edge of the screen and it's important to avoid this behavior, radio buttons might be the better choice.
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.