HTBasic Help
×
Menu
Index

Example: Initial Creating a Widget

 
Step 1: Create METER and SLIDER Widgets
 
The following lines create a SLIDER widget and a METER widget and assign a background color of white to the METER widget. (The SLIDER widget uses default colors.) The LOOP and END LOOP statements are added so that the widgets do not disappear when the program .runs A typical display for this program follows. Since the SLIDER widget was generated last in the program, the SLIDER widget appears on top of the METER widget.
 
10   ASSIGN @Meter TO WIDGET "METER"
20   ASSIGN @Slider TO WIDGET "SLIDER"
30   CONTROL @Meter;SET ("BACKGROUND":1)
40   LOOP
50   END LOOP
60   END