WINDOW LIST

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


WINDOW LIST (windows{; *})

ParameterTypeDescription
windowsArrayArray of window reference numbers
**If specified, take floating windows into account
If omitted, ignore floating windows

Description

The WINDOW LIST command populates the array windows with the window reference numbers of the windows currently open in all running processes (kernel or user processes).

If you do not pass the optional * parameter, floating windows are ignored.

Example

The following project method tiles all the current open window, except floating windows and dialog boxes:

      ` TILE WINDOWS project method

   WINDOW LIST($alWnd)
   $vlLeft:=10
   $vlTop:=80 ` Leave enough room for the Tool bar
   For ($vlWnd;1;Size of array($alWnd))
      If (Window kind($alWnd{$vlWnd}) # Modal Dialog)
         GET WINDOW RECT($vlWL;$vlWT;$vlWR;$vlWB;$alWnd{$vlWnd})
         $vlWR:=$vlLeft+($vlWR-$vlWL)
         $vlWB:=$vlTop+($vlWB-$vlWT)
         $vlWL:=$vlLeft
         $vlWT:=$vlTop
         SET WINDOW RECT($vlWL;$vlWT;$vlWR;$vlWB;$alWnd{$vlWnd})
         $vlLeft:=$vlLeft+10
         $vlTop:=$vlTop+25
      End if
   End for

Note: This method could be improved by adding tests on the size of the main window (on Windows) or the size and location of the screens (on Macintosh).

See Also

Window kind, Window process.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next