DR SET FILL ATTRIBUTES

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

version 6.0


DR SET FILL ATTRIBUTES (area; scope; pattern; color)

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-2 = Default, -1 = All, 0 = Selected, >0 = ID
patternIntegerPattern index (-1 = No change)
colorLongintColor value (-1 = No change)

Description

The command DR SET FILL ATTRIBUTES changes the fill attributes for the objects in area described by scope. Fill attributes are determined by the interior of objects.

If scope equals -2, the command sets the default fill attributes.

If scope equals -1, the command sets the fill attributes for all objects in the document.

If scope equals 0, the command sets the fill attributes for the selected objects.

If scope is greater than 0, it must be equal to a specific object's ID and that object's attributes are set. If the object does not exist, DR SET FILL ATTRIBUTES does nothing, and DR Error returns error number 2.

pattern is the number of the pattern in the palette. Patterns have a value in the range of 1 through 36 and are numbered left to right, top to bottom.

color is a long integer that represents the color of the object's interior. This number can be obtained from the commands DR RGB to color and DR Index to color.

For each of the last two parameters (pattern and color), passing -1 will leave that attribute unchanged.

Example

The following example sets the fill attributes for all objects in the document. It makes the object's patterns solid but doesn't change their color.

   DR SET FILL ATTRIBUTES (Area;0;3;-1)

See Also

DR GET FILL ATTRIBUTES.


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