Polygon (Interactive)
The Polygon (Interactive) Control provides an environment to display a polygon or draw it by clicks. The control is mainly used within the Image Watch control, but it can also be used stand-alone. In addition to a polygon, lines or individual points, for example, can also be displayed or drawn. To do this, the NumPoints
property must be set to 1 or 2 accordingly.
![]() | For all the following attributes, the control has a getter and a setter method. All further attributes, events and permissions provided by the base class Controls can be found in the TwinCAT HMI documentation. |
Category: Colors
Attribute | Type | Description |
---|---|---|
|
| Color of the contours of the drawn polygon. |
|
| Color of the handles of the drawn polygon. |
Category: Common
Attribute | Type | Description |
---|---|---|
|
| Contains the description of the polygon. Can be used both to retrieve a drawn polygon and to set a specific polygon. |
|
| Specifies how many points the complete polygon should have. At 0, any number of points are possible. This specification is important to be able to handle the polygon as complete. |
|
| Indicates whether the polygon is closed or whether it is a polyline. |
Function | Description |
---|---|
| Deletes the painted polygon and description from the |
Category: Usage
Attribute | Type | Description |
---|---|---|
|
| Displays an element on the outside of the polygon to rotate it. |
|
| Specifies the steps in which the polygon can be rotated. At 0, the polygon can be rotated as desired. |
|
| Defines an area in which the shape can be drawn and edited using the five properties "X", "Y", "Width", "Height" and "IsActive". The shape cannot leave this area. |
|
| Specifies whether ShapeData should be updated during "onChanged" or at the end "onConfirmed" of a graphical interaction. |
Category: Appearance
Attribute | Type | Description |
---|---|---|
|
| Line thickness of the polygon. |
|
| Size of the elements to move and change the polygon. |
|
| Size of the clickable area around above elements to move and change the polygon. This can simplify touch screen use without changing the appearance. |
|
| Specifies the offset with which the shape is to be displayed. |
|
| Specifies the scaling in which the shape is to be displayed. The value 1 corresponds to 100%. |
Events
Event | Description |
---|---|
| This event is triggered as soon as the attribute |
| This event is triggered when a shape is set or an interaction with it is completed. |