Online Help
This Shape plugin object is used to create one of three basic shapes on the page. You can create ellipses, rectangles and rounded rectangles. Several properties of the shape can be set using design-time properties and runtime actions. The shape can also respond to basic mouse events.
The type of shape that you want to display. Choose from ellipse, rectangle and rounded rectangle.
If you have Shape Type set to rounded rectangle, this is the width of the rounded corners in pixels.
If you have Shape Type set to rounded rectangle, this is the height of the rounded corners in pixels.
The style of the border that you want to use for the shape. Choose "Solid" if you want to use a color for the border. Choose "Transparent" if you want the border to be transparent (invisible).
The width of the border in pixels. The higher this number, the larger the shape's border will appear. The minimum size is 1.
The color of the border if Stroke Mode was set to "Solid". This is an RGB value.
The fill mode for the fill or inside of the shape. Choose "Solid" if you want to use a color for the fill. Choose "Transparent" if you want the fill to be transparent (invisible). If transparent, you will be able to see through the object.
The color of the fill if Fill Mode was set to "Solid". This is an RGB value.
Fires when the mouse clicks on the shape.
Fires when the mouse enters the shape.
Fires when the mouse leaves the shape.
Changes the fill color of the shape.
(string) The name of the shape object that you want to apply this action to.
(number) The RGB value to set the object's fill color to.
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Set the fill color to blue
Shape.SetFillColor("MyShape", 16711680);
Changes the fill mode of the shape.
(string) The name of the shape object that you want to apply this action to.
(number) The fill mode:
0: Solid
1: Transparent
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Set the fill mode to transparent
Shape.SetFillMode("MyShape",1);
Changes the border color of the shape.
(string) The name of the shape object that you want to apply this action to.
(number) The RGB value to set the object's border color to.
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Set the stroke color to red
Shape.SetStrokeColor("MyShape",255);
Changes the border mode of the shape.
(string) The name of the shape object that you want to apply this action to.
(number) The border mode:
0: Solid
1: Transparent
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Set the stroke mode to solid
Shape.SetStrokeMode("MyShape", 0);
Changes the border width of the shape.
(string) The name of the shape object that you want to apply this action to.
(number) The border width, in pixels. (minimum = 1, maximum = 10)
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Set the stroke width to 5
Shape.SetStrokeWidth("MyShape", 5);
The type of shape to draw.
(string) The name of the shape object that you want to apply this action to.
(number) The type of shape that you want the object to be:
0: Ellipse
1: Rectangle
2: Rounded Rectangle
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
-- Make the object into a rounded rectangle
Shape.SetType("MyShape", 2);
1100 - Could not find the specified plugin object or the plugin object is of the wrong type.
Indigo Rose Corporation
support@indigorose.com
The Shape plugin is copyright © 2003-2005 Indigo Rose Software Design Corporation.
Copyright © 2005 Indigo Rose Software Design Corporation.
All Rights Reserved.