HTBasic Help
×
Menu
Index

Limits Widget

 
_______________________________________________________
LIMITS Widget
Graphically displays numeric values
_______________________________________________________
 
Legal Usage                Level-0 Widget:                Yes
                 Parent to:                None
                 Child of:                        PANEL
 
Example Image
 
     
 
Example Program
 
See LIMITS Widget for a program that creates a LIMITS widget with a display similar to that shown above.
 
NOTE
 
See the following program for another example using the LIMITS widget.
 
          Bar Meter Limits
 
Attributes
 
See LIMITS Widget Attributes for the LIMITS widget attribute list.
 
Remarks
 
The LIMITS widget displays a range of values as a marker moves through the range.The LIMITS widget is another form of the BAR or METER widget. However, the LIMITSwidget differs from the BAR and METER widgets in that it does not support LOW PEN/MIDDLE PEN/HIGH PEN. Instead, it supports only OUTSIDE PEN (the color outside the limits)and INSIDE PEN (the color inside the limits). You cannot set the upper and lower color bounds to different colors.
 
If your computer has a monochrome monitor, the LIMITS widget will handle the situation automatically. There are no attributes related to color to set for this special case. If you have a monochrome monitor, the LIMITS background is shaded light and the value marker and limit lines are black.
 
Events
 
Events for the LIMITS widget are:
 
·
ALARM
·
SYSTEM MENU
 
ALARM
 
This event is generated when the VALUE attribute is set to a value within one of the ranges named in the ALARM RANGES attribute and ALARM TYPE is "EVENT". Redraw activities, such as changing the ORIENTATION attribute value, will not generate an ALARM event.
 
SYSTEM MENU
 
This event is generated when the operator selects items from the SYSTEM MENU.