Name

Listboxes

Synopsis

A listbox is a list of items from which you can choose one or many. There are four common types of listboxes:

Standard listbox

A simple listbox is a rectangular control that contains one or more entries. If there are more entries than can be displayed in the space allotted, scrollbars will appear as well. Click an entry to select it. If the listbox allows multiple items to be selected simultaneously, hold down the Ctrl key while clicking or pressing the spacebar to select additional items, one-by-one, or use Shift-click to select a range of items (see Figure 3-15).

Use the arrow keys to move up and down the list. Type a letter to jump to the first entry that begins with that letter; if there are a lot of items, you can type several letters, quickly in succession, to jump to the first item the begins with those letters.

This listbox shows the bitmap files in your Windows folder, from which you can choose one to be your Desktop background image

Figure 3-15. This listbox shows the bitmap files in your Windows folder, from which you can choose one to be your Desktop background image

Drop-down listbox

A drop-down listbox (see Figure 3-16) works much like a standard listbox, except that only the currently selected entry is shown. Click the down arrow to open the list and choose another item. Drop-down listboxes never allow multiple selections.

Drop-down listboxes work much like standard listboxes, except that they consume less screen real estate

Figure 3-16. Drop-down listboxes work much like standard ...

Get Windows XP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.