*RESTSW (KEYIN and DISPLAY)


 

*RESTSW[={n}]

 

This list control restores the top or the designated, {n}th, *SAVESW image from the program's stack. It then resets the current subwindow to the PREVIOUS coordinates that were in effect prior to those at the time the image was saved.

 

{n} must be a decimal constant separated from *RESTSW by an equal sign. If a specific image is not designated, the last image saved is restored unless all images have been removed from the stack. The following code shows the proper relationship between *RESTSW and *SAVESW when a new subwindow is being defined:

 

 

DISPLAY

*SETSWALL=10:15:20:55:

 

 

*SAVESW,*BORDER,*SHRINKSW:

 

...

 

 

DISPLAY

*RESTSW

 

The window coordinates are restored to the coordinates that were in effect prior to the setting of the window to 10:15:20:55. This type of sequence should not be used if a new subwindow is not being defined. Otherwise, the screen is not restored properly.

 

 

See Also: List Controls (KEYIN and DISPLAY), List Controls (KEYIN), DISPLAY, KEYIN

 



PL/B Language Reference *RESTSCR (KEYIN and DISPLAY) *ROLL (KEYIN and DISPLAY)