dbSetShapeColorLocked
dbSetShapeColorLocked(
d_shapeId
g_setLocked
)
=> t / nil
Description
Changes the color state of the shape.
If you try to set the color state of a non-colorable shape, it results in an error. It also results in an error if you set the color state of a shape whose color is grayColor because it is inconsistent to lock the coloring of an uncolored shape.
Arguments
|
To check the shape's colorability use dbIsShapeColoringAllowed.
|
|
|
Specifies one of the two boolean values:
|
Value Returned
|
Returns |
Example
dbSetShapeColorLocked( coloredRect t ) => t
dbGetShapeColor( coloredRect ) => "mask2Color"
dbSetShapeColorLocked( coloredRect nil ) => t
dbGetShapeColor( coloredRect ) => "mask1Color"
Return to top