dbSetShapeColor
dbSetShapeColor(
d_shapeId
t_maskColor
)
=> t / nil
Description
Assigns the specified color to the given shape if the color state is unlocked.
If you try to set the color of a non-colorable shape, or if the layer associated with the shape is unbound or does not support coloring, the function results in an error.
Arguments
|
Specifies ID of the shape whose color is to be set.
To check the shape's colorability use dbIsShapeColoringAllowed.
|
|
|
Color to be set for the shape.
Valid values: |
Value Returned
Example
dbSetShapeColor(coloredRect "mask1Color" ) => t
dbGetShapeColor(coloredRect) => "mask1Color"
Return to top