schSetShapeStyle
schSetShapeStyle(
d_shape
[ ?color t_colorName ]
[ ?lineStyle t_lineStyleName ]
[ ?stipple t_stippleName ]
[ ?fillStyle t_fillStyleName ]
[ ?fillColor t_colorName ]
)
=> t / nil
Description
Specifies the style attributes of a shape to override the defaults provided by the Display Resource file. Each attribute value must be valid for the current display name.
Arguments
|
d_shape
|
A schematic symbol shape ID.
|
|
?color t_colorName
|
Name of any color defined in the Display Resource Editor.
|
|
?lineStyle t_lineStyleName
|
|
|
Name of line style defined in the Display Resource Editor.
|
|
?stipple t_stippleName
|
|
|
Name of stipple style defined in the Display Resource Editor.
|
|
?fillStyle t_fillStyleName
|
|
|
Name of the fill style.
Valid values:
-
outline - use no shape fill and draw only the shape outline. -
solid - fill the shape with a solid color and outline. -
X - fill the shape with a cross hatched pattern. -
stipple - fill the shape with a stipple pattern defined using ?stipple but draw no shape outline. -
outlineStipple - fill the shape with a stipple pattern specified using ?stipple and draw a shape outline specified in ?outlineColor.
|
|
?fillColor t_colorName
|
|
|
The shape fill color name as specified in the Display Resource Editor.
|
Value Returned
|
t
|
Returns t on success.
|
|
nil
|
One or more attributes specified are invalid.
|
Examples
Selects a shape on the canvas and passes it as an argument to schSetShapeStyle:
schSetShapeStyle(car(selectedSet() ?color "orange" ?lineStyle "dashed")
=> t
Return to top