RESET |
This entry point allows the use of the ListMan
standard protocol VALM TURN ON/OFF MENUS ( Auto-Display(On/Off) )to toggle
between a normal and expanded screen length. In each Inpatient Medications
Protocol HEADER field, a call is made that declares a short and long screen
length and makes the call to RESET^VALM4. Each time the user executes the VALM
TURN ON/OFF MENUS protocol, the protocol choices at the bottom of the screen
are removed or brought back and the screen length is adjusted accordingly.
In each Inpatient Medications Protocol HEADER field, a call is made to
A^PSJ200(a,b) with (a) defined as long screen number of lines and (b) defined
as short screen number of lines.
A^PSJ200() is coded as:
A(LONG,SHORT,SHRINK) ; Resizes list area
N PSJBM S PSJBM=$S(VALMMENU:SHORT,+$G(SHRINK):SHORT,1:LONG)
I VALM("BM")'=PSJBM S VALMBCK="R" D
.S VALM("BM")=PSJBM,VALM("LINES")=(PSJBM-VALM("TM"))+1
.I +$G(VALMCC) D RESET^VALM4
Q
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
VALM('BM') |
Input |
Declares a long or short bottom margin variable to be
used when displaying the list.
|
VALM('LINES') |
Input |
Modifies the number of screen lines for the list to
be either regular or expanded. This changes each time the user executes the
VALM TURN ON/OFF MENUS protocol.
|
|