| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
					
                    
                         
    4D v20.6
 
SCREEN COORDINATES 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SCREEN COORDINATES ( left ; top ; right ; bottom {; screenID {; screenArea}} ) | ||||||||
| Parameter | Type | Description | ||||||
| left | Longint | 
             
         | 
        Global left coordinate of screen area | |||||
| top | Longint | 
             
         | 
        Global top coordinate of screen area | |||||
| right | Longint | 
             
         | 
        Global right coordinate of screen area | |||||
| bottom | Longint | 
             
         | 
        Global bottom coordinate of screen area | |||||
| screenID | Longint | 
             
         | 
        Screen number, or main screen if omitted | |||||
| screenArea | Longint | 
             
         | 
        Entire screen (default) or working area | |||||
The SCREEN COORDINATES command returns in left, top, right, and bottom the global coordinates of the screen specified by screenID.
If you omit the screenID parameter, the command returns the coordinates of the main screen.
The optional screenArea parameter lets you specify if you want the coordinates for the entire screen area (default) or only for the available usable area. Two selectors are available:
| Constant | Value | Comment | 
| Screen size | 0 | The coordinates of the entire screen. (default value)  | 
		
| Screen work area | 1 | The coordinates of the available screen area that can be used (i.e., they are not occupied by Windows taskbar or macOS menu bar and Dock).  | 
		
The following images demonstrate the differences between the screen size and the work area:
 
Notes:
	Product:  4D
	Theme:  System Environment
	Number:  
        438
        
        
        
	
	Modified:  4D v11 SQL  
	Modified:  4D v18 R2
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment