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.