11 lines
4.0 KiB
Plaintext
11 lines
4.0 KiB
Plaintext
en·vÅos PRINTERMENU
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
PRINTERMENU
|
||
1
|
||
|
||
4
|
||
|
||
By: ISLWS (Bloomberg.pa@Xerox.com)
|
||
DESCRIPTION
|
||
Creates a menu which displays all printers in the global list DEFAULTPRINTINGHOST, allows selection of a default printer, and permits addition and deletion of printers from DEFAULTPRINTINGHOST. Printers are displayed in the same order as they appear in DEFAULTPRINTINGHOST. Selecting an item from the menu will highlight by inversion and move it to the top of the menu, thus becoming the default printer. Selection in the title bar of the menu with the left or middle button will allow you to add or to delete a printer from the menu.
|
||
An auxiliary process, PRINTERMENU.WATCH, monitors the value of DEFAULTPRINTINGHOST and will update the menu if this variable is changed. If PRINTERMENU.WATCH is killed, the menu will be grayed out to indicate that it may no longer be valid. Clicking left or middle buttons inside the menu will restart PRINTERMENU.WATCH and update the menu.
|
||
To use:
|
||
Load the module with:
|
||
(LOAD 'PRINTERMENU.LCOM)
|
||
Start it with:
|
||
(PRINTERMENU)
|
||
User Switches:
|
||
1. Set DEFAULTPRINTINGHOST to contain all printers from which you wish to select.
|
||
2. Prior to calling the function (PRINTERMENU), the global variable PRINTERMENU.POSITION can be set to the position, in screen coordinates, where you want the menu to appear. If not set, you will be prompted for a position for the menu window. |