HIDE WINDOW Command Example

In the following example, a window named wOutput1 is defined and activated. The program waits for you to press a key and then hides the window. The program waits for you to press a key again and then displays the window. Pressing a key a third time removes the window from the screen and from memory.

DEFINE WINDOW wOutput1 FROM 6,1 TO 19,75 TITLE 'Output' ;
   CLOSE FLOAT GROW ZOOM
ACTIVATE WINDOW wOutput1 

WAIT WINDOW 'Press a key to hide this window'
HIDE WINDOW wOutput1 

WAIT WINDOW 'Press a key to see the window again'
SHOW WINDOW wOutput1 

WAIT WINDOW 'Press a key to remove the window from memory'
DEACTIVATE WINDOW wOutput1 
RELEASE WINDOW wOutput1