DR SET GLOBAL PREFERENCES

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 2004 (Modified)


DR SET GLOBAL PREFERENCES (write; read{; selection{; grid{; horLock{; vertLock}}}})

ParameterTypeDescription
writeIntegerLocation to which to write
-1=No change, 0=Client, 1=Server
readIntegerLocation from which to read
-1=No change, 0=Client, 1=Server
selectionIntegerObject selection
0=No change, 1=Included objects, 2=Touched objects
gridIntegerDefault activation of grid
0=No change, 1=Grid disabled, 2=Grid enabled
horLockStringHorizontal lock key
vertLockStringVertical lock key

Description

The DR SET GLOBAL PREFERENCES command allows setting several options that will be applied to all 4D Draw areas during the work session.

write and read: In 4D Server, templates can be stored on either the client or the server (default). The write and read parameters allow you to set the read and write locations for templates for a 4D Server database.

write is the location to which to save templates. 4D Draw uses this preference when the user chooses Save as a Template from the 4D Draw File menu, or when you call this menu item (1006) using the DR DO COMMAND command.

read is the location from which to read templates. 4D Draw uses this parameter when loading templates for 4D Draw areas on forms.

Note: These parameters have no effect on the single-user version of 4D Draw.

selection: This parameter modifies the way in which objects can be selected in 4D Draw areas.

- If you pass 1, only objects that are entirely included within the selection rectangle will be selected (default behavior).

- If you pass 2 , all the 4D Draw objects touched by the selection rectangle will be selected. This behavior is identical to that of the Form editor in 4th Dimension.

If you do not want to modify this setting, pass 0.

grid: This parameter is used to set the initial state of the grid for all the 4D Draw documents that are opened or created.

- If you pass 1, the grid is disabled (default behavior).

- If you pass 2, the grid is enabled.

If you do not want to modify this setting, pass 0.

horLock and vertLock: These parameters let you designate the horizontal and vertical lock keys that can be used when creating objects. Pressing one of these keys while you are drawing an object locks the object size associated with the key.

By default, the h and v keys are used respectively for horizontal and vertical locking.

See Also

DR GET GLOBAL PREFERENCES.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next