HIDE WINDOW Command

Example   See Also

Hides an active user-defined window or Microsoft Visual FoxPro system window.

Syntax

HIDE WINDOW WindowName1 [, WindowName2 ... ] | ALL | SCREEN
  [ IN [WINDOW] WindowNameN | IN [WINDOW] SCREEN
  | IN [WINDOW]
  [BOTTOM | TOP | SAME]

Arguments

WindowName1 [, WindowName2 ...]

Specifies the name of the window or a list of windows (separated by commas) to hide. If you issue HIDE WINDOW without any arguments, the active window is hidden. In Visual FoxPro, you can specify the name of a toolbar to hide. See SHOW WINDOW for a list of Visual FoxPro toolbar names.

ALL

Hides all windows.

SCREEN

Hides the main Visual FoxPro window. To display the main Visual FoxPro window again, issue ACTIVATE WINDOW SCREEN or SHOW WINDOW SCREEN.

IN [WINDOW] WindowNameN

Hides the window within a parent window.

IN [WINDOW] SCREEN

Explicitly hides a window in the main Visual FoxPro window.

BOTTOM | TOP | SAME

Specifies where windows are hidden with respect to other windows. BOTTOM places a window behind all other windows. TOP (the default) places a window in front of all other windows. SAME hides a window without affecting its front-to-back placement. To preserve the relative positions of multiple hidden windows when they are redisplayed with SHOW WINDOW ALL, include the SAME keyword when you hide the windows.

Remarks

HIDE WINDOW removes a window or a set of windows from the main Visual FoxPro window or from a user-defined window. You can use HIDE WINDOW to hide system windows, such as the Command window, the Data Session window, and so on.

Hiding a window isn't the same as closing it. When a window is hidden, it stays resident in memory and remains active. Output can be sent to a hidden window, but you cannot see it.

Releasing a window removes it from memory. Windows removed from memory must be defined again to be redisplayed. A window can be displayed with ACTIVATE WINDOW or SHOW WINDOW.

To hide a system window and or a toolbar (in Visual FoxPro), enclose the entire system window or toolbar name in quotation marks. For example, to hide the Report Controls toolbar in Visual FoxPro, issue the following command:

HIDE WINDOW "Report Controls"