This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
WA SET PREFERENCE
|
WA SET 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 be modified | |||||
value | Boolean |
![]() |
Value of the preference (True = allowed, False = not allowed) | |||||
The WA SET PREFERENCE command sets different preferences for the Web area designated by the * and object parameters.
Pass the preference to be modified in the selector parameter and the value to be assigned to it in the value parameter. In selector, 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 | Allow dropping of URLs or files 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 |
For each preference, pass True in value to activate it and False to deactivate it.
To enable URL drops in the 'myarea' Web area:
WA SET PREFERENCE(*;"myarea";WA enable URL drop;True)
Product: 4D
Theme: Web Area
Number:
1041
Created: 4D v11 SQL Release 2
Modified: 4D v14
Modified: 4D v14 R2
Modified: 4D v19
4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)