HIDE WINDOW

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0.5


HIDE WINDOW {(window)}

ParameterTypeDescription
windowWinRefWindow reference number or
Current process frontmost window, if omitted

Description

The HIDE WINDOW command allows you to hide the window whose number was passed in window or, if this parameter is omitted, the current process frontmost window. For example, this command allows you to display only the active window in a process that consists of several processes.

The window disappears from the screen but remains open. You can still programmatically apply any changes supported by 4D windows.

To display a window that was previously hidden by the HIDE WINDOW command:

Use the SHOW WINDOW command and pass the window reference ID.

Use the Process page of the Runtime Explorer. Select the process in which the window is handled, then click on the Show button.

To hide all the windows of a process, use the HIDE PROCESS command.

Example

This example corresponds to a method of a button located in an input form. This button opens a dialog box in a new window that belongs to the same process. In this example, the user wants to hide the other windows of the process (an entry form and a tool palette) while displaying the dialog box. Once the dialog box is validated, other process windows are displayed again.

      ` Object method for the "Information" button 

   HIDE WINDOW(Entry)  ` Hide the entry window
   HIDE WINDOW(Palette)  ` Hide the palette
   $Infos:=Open window(20;100;500;400;8)  ` Create the information window
   ...    ` Place here instructions that are dedicated to the dialog management
   CLOSE WINDOW($Infos)  ` Close the dialog
   SHOW WINDOW(Entry) 
   SHOW WINDOW(Palette)  ` Display the other windows

See Also

SHOW WINDOW.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next