SHOW WINDOW Command
Displays one or more user-defined windows or Visual FoxPro system windows without activating them.
SHOW WINDOW WindowName1 [, WindowName2 ...] | ALL | SCREEN [IN [WINDOW] WindowName3 [REFRESH] [TOP | BOTTOM | SAME] [SAVE]
- WindowName1 [, WindowName2...]
Specifies the name of one or more windows to display.
Displays all user-defined windows.
Displays the main Visual FoxPro window when it is hidden. You can also choose Screen from the Window menu to display the main Visual FoxPro window. You can hide the main Visual FoxPro window by clicking its close box or issuing DEACTIVATE WINDOW SCREEN, HIDE WINDOW SCREEN, or RELEASE WINDOW SCREEN.
- IN [WINDOW] WindowName3
Displays the window inside a parent window specified with WindowName3. The window does not assume the characteristics of the parent window. A window displayed inside a parent window cannot be moved outside the parent window. If the parent window is moved, the child window moves with it.
The parent window specified with WindowName3 must first be created with DEFINE WINDOW.
- IN SCREEN
Explicitly displays the window in the main Visual FoxPro window instead of in another window. Windows are placed in the main Visual FoxPro window by default.
Redraws a Browse window. This option is useful on a network to ensure that you are browsing the most current version of a table. The work area for the Browse window table is selected.
Memo-editing windows are refreshed with changes made to the memo field by other users on a network. SET REFRESH determines the interval between memo-editing-window refreshes. Refer to SET REFRESH for additional information on how data is refreshed in tables opened for shared use on a network.
Places the specified window in front of all other windows.
Places the specified window behind all other windows.
Places the specified window back into a stack of windows in the same position the window occupied before it was deactivated. SAME affects only windows that have been previously displayed or activated and then cleared from the main Visual FoxPro window with DEACTIVATE WINDOW.
Keeps an image of the window in the main Visual FoxPro window or in another window after the window is released. Normally, windows are removed from the main Visual FoxPro window after they are released. The window image can be cleared from the main Visual FoxPro window or a window with CLEAR.
SHOW WINDOW controls the display and front-to-back screen placement of windows. If a window is hidden or has not been activated, SHOW WINDOW displays the window without activating it. If one or more windows are currently displayed, SHOW WINDOW lets you change the front-to-back order of the windows.
You can also display system windows, such as the Command window.
In Visual FoxPro, you can use SHOW WINDOW to display the Visual FoxPro toolbars. Use HIDE WINDOW to remove a toolbar from the FoxPro window. Toolbars must be active before they can be displayed. The following table lists the Visual FoxPro toolbars names to use in SHOW WINDOW and HIDE WINDOW. Enclose the toolbar name in quotation marks.
To show a system window, enclose the entire system window name in quotation marks.
You cannot specify where output is directed to user-defined windows with SHOW WINDOW. Use ACTIVATE WINDOW to direct output to a user-defined window created with DEFINE WINDOW.
Historically in prior versions of Visual FoxPro, the Data Session window has always been referred to as the View window. Additionally, language used to control this window, such as HIDE WINDOW, ACTIVATE WINDOW, WONTOP( ), also refers to this window as the View window. Visual FoxPro continues to refer to the View window for the SHOW WINDOW command.
The following example, a window named wOutput1 is created and displayed. Since SHOW WINDOW is used to display the window, output cannot be directed to the window until it is activated.
CLEAR DEFINE WINDOW wOutput1 FROM 2,1 TO 13,75 TITLE 'Output' ; CLOSE FLOAT GROW ZOOM SHOW WINDOW wOutput1