Using the individual controls
Contents
- CommandButton
- PictureButton
- CheckBox
- RadioButton
- StaticText
- StaticHyperLink
- Picture
- PictureHyperLink
- GroupBox
- Drawing controls
- SingleLineEdit and MultiLineEdit
- EditMask
- HScrollBar and VScrollBar
- HTrackBar and VTrackBar
- HProgressBar and VProgressBar
- DropDownListBox
- DropDownPictureListBox
- ListBox
- PictureListBox
- ListView
- TreeView
- Tab
- MonthCalendar
- DatePicker
- Animation
- InkEdit and InkPicture
There are four basic types of controls with different
purposes.
Function |
Controls include |
---|---|
Invoke actions |
CommandButtons, PictureButtons, PictureHyperLinks, |
Display or accept data, or both |
ListBoxes, PictureListBoxes, DropDownListBoxes, |
Indicate choices |
RadioButtons, CheckBoxes (you can group these |
Decorative |
Line, Rectangle, RoundRectangle, Oval, |
How to use the controls
You should use the controls only for the purpose shown in the
table. For example, users expect radio buttons for selecting an option.
Do not use a radio button also to invoke an action, such as opening a
window or printing. Use a command button for that.
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.
Individual controls
The following sections describe some features that are unique to
individual controls. The controls are listed in the order in which they
display on the Insert>Control menu and the drop-down controls
palette:
Some controls are not covered in this chapter:
-
DataWindow controls and objects. See Defining DataWindow Objects.
-
RichTextEdit controls. See Working with Rich
Text. -
User objects. See Working with User
Objects. -
Graph controls. See Working with
Graphs. -
OLE controls. See Using OLE in a DataWindow
Object.