15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

298<br />

Elements of a User Interface<br />

Figure 10-10:<br />

Check<br />

boxes can<br />

display<br />

multiple<br />

choices and<br />

pick more<br />

than one<br />

option.<br />

The drawback of both radio buttons and check boxes is that they take up<br />

space on-screen. Displaying 4 or 5 radio buttons or check boxes on-screen is<br />

reasonable, but displaying 20 or 30 radio buttons or check boxes can get<br />

cumbersome.<br />

Displaying multiple choices in a list box or combo box<br />

If you need to display multiple choices, you may find it easier to display all<br />

those choices in a list box. A list box can either display all choices or a limited<br />

number of choices.<br />

If the list box is large enough, it can display all choices. If the number of<br />

options is more than the list box can display at once, the list box displays a<br />

scroll bar so users can scroll through the list of all available options, as<br />

shown in Figure 10-11.<br />

Figure 10-11:<br />

List boxes<br />

display a list<br />

of options.<br />

Similar to list boxes are combo boxes, which combine the features of a text<br />

box with a list box. Like a text box, a combo box lets users type data directly<br />

into the program. Like a list box, a combo box also displays a list of options<br />

that the user can choose, as shown in Figure 10-12.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!