Command WR SET AREA PROPERTY

4D Write

WR SET AREA PROPERTY

version 2004.3 (Modified)


WR SET AREA PROPERTY (area; option; value{; stringValue})

ParameterTypeDescription
areaLongint4D Write area
optionIntegerOption number
valueIntegerDepends on the option
stringValueStringString 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. You can also use the constants of the "WR Parameters" theme to set the values. 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.

optionAllows setting or getting (value)
wr confirm dialog (0)the display status of the confirm dialog box:
wr no dialog (0), wr display dialog (1)
wr save preview (1)the picture preview creation:
wr no picture preview (0), wr picture preview creation (1)
wr allow undo (2)the buffering of actions: wr no undo (0) =
actions not stored, wr undo allowed (1) = actions are stored
wr modified (3)the dirty bit status— except if area = 0: wr dirty bit status false (0),
wr dirty bit status true (1)
wr fixed print size (4)the variable size printing status — except if area = 0:
wr var size printing status (0), wr fixed size printing status (1)
wr convert dialog (5)the display status of the 4D Write 6.0 field conversion
dialog — if area = 0: wr no dialog (0), wr display dialog (1)
wr minimized button title (6)the button title when area is minimized:
wr area name (0), wr custom title (1) 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: wr on client (0), wr on server (1)
wr load template on server (11)where to load the templates from in C/S: wr on client (0),
wr on server (1)
wr convert by token (12)the interpretation of the field references during document
conversion: wr convert by names (0), wr convert by numbers (1)
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: wr use default zoom (0)
= 100 %, wr use saved zoom (1)

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;wr no picture preview)
   WR SET AREA PROPERTY(Area;wr confirm dialog;wr no dialog)
   WR SET AREA PROPERTY(Area;wr allow undo;wr no undo)

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;wr convert by numbers)

See Also

WR GET AREA PROPERTY.