PolyShape
Represents a polygon shape (or a star shape).
How to use
- Drop a
PolyShape
control from the object panel to aWindow
- Use the
PolyShape Inspector
to customize its properties likeThickness
,Slides
,Shape
andBorder Color
The inspector where the PolyShape
class can be configured.
Example
- Drop a
Button
control from the object panel to aWindow
- Open the
Code Editor
- Select the
Action
item inside theEvents
area and write your custom code in theCode Editor
PolyShape1.sides = 6 PolyShape1.internalRadius = 20 PolyShape1.strokeThickness = 2
Most important properties
Several UI aspects can be configured in the PolyShape
class but the sides
, internalRadius
, and strokeThickness
are the most commons to be configured.
sides
: Number of sides of the polygon.internalRadius
: Polygon internal radius value.strokeThickness
: Border thickness.
References
PolyShape class reference contains a complete list of properties and methods that can be used to customize a PolyShape
object.