version 2004.3 (Modified)
WR SET AREA PROPERTY (area; option; value{; stringValue})
Parameter | Type | Description | |
area | Longint | 4D Write area | |
option | Integer | Option number | |
value | Integer | Depends on the option | |
stringValue | String | String for the property, | |
depending on the option |
Description
The WR SET AREA PROPERTY command allows you to modify the value of option for the 4D Write area referenced by area.
If area equals 0, the WR SET AREA PROPERTY command will apply to each 4D Write area that is opened subsequently. In this case, it is recommended that your code should call this command in the On Startup Database Method.
In option, pass one of the constants of the "WR Area properties" theme. A description of each constant and its corresponding values are found below.
The stringValue parameter can be used with the wr window title and wr minimized button title properties.
option | Allows setting or getting (value) |
wr confirm dialog (0) | the display status of the confirm dialog box (no dialog=0, |
dialog=1) | |
wr save preview (1) | the picture preview creation (no preview=0, preview=1) |
wr allow undo (2) | the buffering of actions (0=no buffer, 1=actions are stored) |
wr modified (3) | the dirty bit status except if area = 0 (0=false, 1=true) |
wr fixed print size (4) | the variable size printing status except if area = 0 |
(0=variable size, 1=fixed size) | |
wr convert dialog (5) | the display status of the 4D Write 6.0 field conversion |
dialog if area = 0 (no dialog=0, dialog=1) | |
wr minimized button title (6) | the button title when area is minimized (0=default title, |
1=custom title passed in stringValue) | |
wr window title (7) | the 4D Write Window title when going to full screen or in |
external window (0=area name, 1=custom title passed in | |
stringValue | |
wr minimum width (8) | the minimum area width before switching to button |
(value in pixels) | |
wr minimum height (9) | the minimum area height before switching to button |
(value in pixels) | |
wr save template on server (10) | where to save the templates in C/S (0=on client, 1=on |
server) | |
wr load template on server (11) | where to load the templates from in C/S (0=on client, 1=on |
server) | |
wr convert by token (12) | the interpretation of the field references during document |
conversion (0=names (default), 1=numbers) | |
wr zoom factor (13) | the percentage of the zoom in area (value=25 to 500) |
wr allow drag (14) | the drag authorization from area (0=drag not allowed, |
1=drag allowed) | |
wr allow drop (15) | the drop authorization to area (0=drop not allowed, |
1=drop allowed) | |
wr on the fly spellchecking (16) | the spellchecking "as you type" mode activation |
(0=checking off, 1=checking on) | |
wr timer frequency (17) | the frequency that the wr on timer event is generated |
(value=call frequency in ticks one tick = 1/60th of a | |
second 3600 by default) | |
wr use saved zoom value (18) | opening an area with the zoom value saved when the |
area was last closed (0=open area with zoom at | |
100% (default), 1=use saved value) |
Examples
(1) You want to disable the automatic picture preview of the area, the display of the confirm dialog and the Undo command from the Edit menu:
WR SET AREA PROPERTY(Area;wr save preview;0) WR SET AREA PROPERTY(Area;wr confirm dialog;0) WR SET AREA PROPERTY(Area;wr allow undo;0)
(2) You want to open 4D Write version 6.x documents using table and field numbers instead of names. Thus, if a field name has been modified after the v6 document was saved, no error will occur when opening the document. To do so, execute the following statement:
WR SET AREA PROPERTY(0;wr convert by token;1)
See also