HTBasic Help
×
Menu
Index

Widget Attribute Definitions

 
Attributes are qualities or properties of HTBasic widgets (and dialogs) The function and appearance of a widget (or dialog) is determined by the values of its attributes. There are five types of widget attributes, as shown inWidgets Attribute Types.
See Widgets Common Attributes for a list of common attributes for dialogs.
 
Each widget has a set of specific attributes that are specific to the widget and a set of common attributes that are common to all widgets. In addition, some widgets have a set of attributes that are applicable only when the widget is used as a level-0 widget.
 
NOTE
 
OPTION BASE 0 is used for all array indices. Dialogs and widgets always treat the first element in an array as element 0, regardless of how you dimension (DIM) or ALLOCATE.
 
Widget Attributes Characteristics
 
All widget attributes have a:
·
Data type, such as string or numeric
·
Range of allowed values, such as ["ENGINEERING", "SCIENTIFIC", "FIXED"]or [0..100]
·
Default value
 
Appearance related widget attributes control things such as:
·
The colors of the various parts of the widgets
·
Whether the widget is visible or has a border
·
Whether the widget is movable, resizable, or scrollable
·
The width, height, and position of the widget on the screen
 
Function related widget attributes control things like:
·
The widget's title
·
Whether the text is left or center justified
·
Whether the widget's scale is logarithmic or linear
·
The value to be displayed
 
Widget Common Attributes
 
See the Widgets Common Attributes table for widgets common attributes  Note that some common attributes are defined only for level-0 widgets.
 
NOTE
 
Although widgets may have the same common attributes, the default values may differ among widgets. See the appropriate widget for specifics on each attribute.