HTBasic Help
×
Menu
Index

Printer Widget

 
_______________________________________________________
PRINTER Widget
Displays lines of text
_______________________________________________________
 
Legal Usage                Level-0 Widget:                Yes
                 Parent to:                None
                 Child of:                        PANEL
 
Example Image
 
     
 
Example Program
 
See PRINTER Widget for a program that produces a display similar to that
shown above.
 
NOTE
 
See the following programs for other examples using the PRINTER widget.
 
         Environmental Chamber
         Menu System
         RADIOBUTTON Widget
         Slot Machine
         Using ON EVENT
 
Attributes
 
See PRINTER Widget Attributes for the PRINTER widget attribute list.
 
Remarks
 
The PRINTER widget emulates the behavior of a printer by dumping linesof text to a display and scrolling the lines. The PRINTER widget normally has a text buffer of 100 lines, as given by the sum of the ROWS attribute (which gives the space for lines to be displayed) and the HIDDEN LINES attribute (which gives the space for the remainder that cannot be seen).
 
The VALID LINES attribute gives the number of lines that are actually used, and you can reposition the text in the display to any line in the buffer with the TOP LINE attribute. The APPEND TEXT attribute prints a new line of text in the widget every time it is used. To skip a line, use APPEND TEXT with a null string. You can also invoke it with a string array as a parameter.
 
Events
 
The event for the PRINTER widget is:
 
·
SYSTEM MENU
 
SYSTEM MENU
 
This event is generated when the operator selects items from the SYSTEM MENU.