Represents a polygon shape (or a star shape).
How to use
- Drop a
PolyShapecontrol from the object panel to a
- Use the
PolyShape Inspectorto customize its properties like
The inspector where the
PolyShape class can be configured.
- Drop a
Buttoncontrol from the object panel to a
- Open the
- Select the
Actionitem inside the
Eventsarea and write your custom code in the
PolyShape1.sides = 6 PolyShape1.internalRadius = 20 PolyShape1.strokeThickness = 2
Most important properties
Several UI aspects can be configured in the
PolyShape class but the
strokeThickness are the most commons to be configured.
sides: Number of sides of the polygon.
internalRadius: Polygon internal radius value.
strokeThickness: Border thickness.
PolyShape class reference contains a complete list of properties and methods that can be used to customize a