PowerBASIC Forms offers a palette of 31 standard controls plus a user-definable custom-control option, each represented by a button in the toolbox window. The graphical captions for the toolbox buttons are described below. In addition, hovering the mouse cursor over a toolbox button will display a tool tip that remind the user of the type of control the button represents.
Controls are added to the current work dialog by clicking on the control type in the toolbox window, then performing a click+drag on the work dialog surface to define ("draw") the size of the control. Alternatively, controls can be added by double-clicking the control type in the toolbox window, at which point PowerBASIC Forms automatically positions and sizes the control to the default or favorite size specified for the control.
The toolbox window buttons include the following:
Large button |
Description |
DDT control type |
|
Graphic control |
GRAPHIC |
|
Image control |
IMAGE |
|
Stretchable Image control |
IMAGEX |
|
Label/Static control |
LABEL |
|
Text/Edit control |
TEXTBOX |
|
Frame/Group control |
FRAME |
|
Button control |
BUTTON |
|
Image Button control |
IMGBUTTON |
|
Stretchable Image Button |
IMGBUTTONX |
|
Check box control |
CHECKBOX |
|
Check 3-state control |
CHECK3STATE |
|
Option/Radio control |
OPTION |
|
Combo box control |
COMBOBOX |
|
List box control |
LISTBOX |
|
Horizontal scroll control |
SCROLLBAR |
|
Vertical scroll control |
SCROLLBAR |
|
Line or Box control |
LINE |
|
Spin/up-down control |
|
|
Progress bar control |
PROGRESSBAR |
|
Slider/track bar control |
|
|
Hot key control |
|
|
Listview control |
LISTVIEW |
|
Treeview control |
TREEVIEW |
|
Tab control |
TAB |
|
Animate control |
|
|
Rich edit control |
|
|
Date Time picker control |
|
|
Month calendar control |
|
|
IP address control |
|
|
Status Bar control |
STATUSBAR |
|
Toolbar control |
TOOLBAR |
|
Custom control |
"Custom Control" |
The toolbox window can also be resized and repositioned to any convenient location on the screen, and the change persists between sessions. In addition, the toolbox window supports a "small button" and a "large button" mode, which can be altered in the General Options tab of the Setup dialog.
Where the controls listed above do not have an equivalent DDT control name, PowerBASIC Forms generates the code for the control using the custom-control syntax, for example, CONTROL ADD "SysTreeView32". All common controls fall into this category.
It should be noted that standard Windows 95 installations do not support the Date Time Picker, Month Calendar, or IP Address common controls. However, these controls will be available if Internet Explorer™ version 3 (IE3) or latter has been installed, and/or if a latter version of the common controls library has been installed. PowerBASIC Forms will disable the toolbox buttons for those specific controls if the installed common control library does not support the controls. However, it is still possible to update those PCs by downloading and installing the latest common control Library for Windows 95 from the Microsoft web site at http://www.microsoft.com/downloads/en/default.aspx.
Fortunately, standard installations of successive versions of Windows are likely to support the common controls listed above because they will install more recent versions of Internet Explorer™.
For information on the menus offered in the main PowerBASIC Forms window, please see IDE Menus.
In the next topic, we'll discuss how to add controls to a work dialog.
See Also
Introduction to PowerBASIC Forms