| 4D v20.1WA GET PREFERENCE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v20.1
 WA GET PREFERENCE 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WA GET PREFERENCE ( {* ;} object ; selector ; value ) | ||||||||
| Parameter | Type | Description | ||||||
| * | Operator |   | If specified, object is an object name (string) If omitted, object is a variable | |||||
| object | Form object |   | Object name (if * is specified) or Variable (if * is omitted) | |||||
| selector | Longint |   | Preference to get | |||||
| value | Variable |   | Current value of the preference | |||||
The WA GET PREFERENCE command gets the current value of the preference in the Web area designated by the * and object parameters.
Pass the preference whose value you want to get in the selector parameter. You can pass one of the following constants, found in the Web Area theme:
| Constant | Value | Comment | 
| WA enable contextual menu | 4 | Allow the display of a standard contextual menu in the Web area. Default (any engine) = False | 
| WA enable URL drop | 101 | Change drop icon and call On Window Opening Denied event when URLs or files are dropped in the Web area. Default (any engine) = False | 
| WA enable Web inspector | 100 | Allow the display of the Web inspector in the area. Default (any engine) = False | 
In the value parameter, pass a variable that will receive the current value of the preference. The value variable is always a Boolean: it contains True if the preference is active and False otherwise.
	Product:  4D
	Theme:  Web Area
	Number:  
        1042
        
        
        
	
	Created:  4D v11 SQL Release 2
	Modified:  4D v14 R2
	Modified:  4D v19
	Modified:  4D v19 R5
	
	
	
	
	4D Language Reference ( 4D v20)
	
	4D Language Reference ( 4D v20.1)
	
	
 Add a comment
Add a comment