4D v16.3

WINDOW LIST

Home

 
4D v16.3
WINDOW LIST

WINDOW LIST 


 

WINDOW LIST ( windows {; *} ) 
Parameter Type   Description
windows  Array in Array of window reference numbers
Operator in If specified, take floating windows into account If omitted, ignore floating windows

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). Only "visible" windows (i.e. windows that are not hidden) are returned.

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

 
PROPERTIES 

Product: 4D
Theme: Windows
Number: 442

 
HISTORY 

Created: 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)