Table 11-2 lists basic types of controls by the purpose that they serve in typical applications.
Function |
Controls include |
---|---|
Invoke actions |
CommandButtons, PictureButtons, PictureHyperLinks, StaticHyperLinks, Tabs, Toolbars, User Objects |
Display and/or accept data |
ListBoxes, DropDownListBoxes, DataWindow controls, StaticText, ListViews, TreeViews, Graphs, Pictures, ProgressBars, ScrollBars, SingleLineEdits, MultiLineEdits, EditMasks, Tabs, Signature controls, User Objects |
Indicate choices |
RadioButtons (you can group these controls in a GroupBox), CheckBoxes, TrackBars |
Enhance presentation |
Line, Rectangle, RoundRectangle, Oval |
Smartphone platform Several control types are not fully supported on Smartphone platforms. These include Tabs, Toolbars, RadioButtons, and Signature controls. ListBoxes and DropDownListBoxes are converted automatically to Spinner controls on the Smartphone platform.
Generally you should use the controls only for the purposes shown in the preceding table. For example, users expect to use radio buttons to select an option. Do not also have them use a RadioButton to invoke an action, such as opening a window or printing. Use a CommandButton for that purpose.
There are, however, several exceptions: user objects can be created for any purpose, and ListBoxes, ListViews, TreeViews, and Tabs are often used both to display data and to invoke actions. For example, double-clicking a ListBox item often causes some action to occur.
The rest of this chapter describes features that are unique to individual controls:
For controls that are not described here, see the following chapters of this User’s Guide:
For information about user objects, see Chapter 14, “Working with User Objects”
For information about controls and objects that are specific to the Windows CE platforms, see Chapter 15, “Working with Native Objects and Controls for Windows CE Devices”
For information about DataWindow controls and objects, see Chapter 17, “Defining DataWindow Objects”
For information about graph controls, see Chapter 24, “Working with Graphs”
For information about the Today item, see “Application object properties for a custom Today item”