HTBasic Help
×
Menu
Index

Label Widget

 
_______________________________________________________
LABEL Widget
Displays a string of text
_______________________________________________________
 
Legal Usage                Level-0 Widget:                Yes
                 Parent to:                None
                 Child of:                        PANEL
 
Example Image
 
     
 
Example Program
 
See LABEL Widget for a program shows how to build a table of text items using the LABEL widget. In this program, you create a multi-line LABEL widget and then set its VALUE attribute to a string with embedded line feed characters (using CHR$(10)) to separate it into multiple lines.
 
NOTE
 
See the following programs for other examples using the LABEL widget:
 
         Calculator
         Changing the Font
         Environmental Chamber
         Hammer Game
         Ice Cream Sundae
         Passwords
         SLIDER Test
         Tic-Tac-Toe
         TOGGLEBUTTON Widget
 
Attributes
 
See LABEL Widget Attributes for the LABEL widget attribute list.
 
Remarks
 
The LABEL widget allows you to specify the justification (LEFT, RIGHT, etc.) of the information in the LABEL. You can also give it a numeric variable or value, instead of a string. For example:
 
         ASSIGN @Lbl TO WIDGET "LABEL"; SET ("VALUE":"Hi There")
 
Many widgets have a LABEL attribute that allows you to specify some describing text, but the LABEL widget itself uses a VALUE attribute to display its information. The LABEL widget has no LABEL attribute. The LABEL widget can be placed as the label of another widget.
 
Events
 
The event for the LABEL widget is:
 
·
SYSTEM MENU
 
SYSTEM MENU
 
This event is generated when the operator selects items from the SYSTEM MENU.