Visualization Element ‘Combo box – Integer’¶
Symbol:
Tag: Common controls
This element lists values in a drop-down list. The index of the selected value is written to a variable. The element entries can be from a list and contain images from an image pool.
Element properties
Element name | Optional Tip: Assign individual names for elements so that they are found faster in the element list. Example: |
Element type | Combo box integer |
Element property ‘Position’
The position defines the location and size of the element in the visualization window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive horizontal x-axis runs to the right. The positive vertical y-axis runs downwards.
X | X coordinate of the upper left corner of the element Specified in pixels. Example: |
Y | Y coordinate of the upper left corner of the element Specified in pixels. Example: |
Width | Specified in pixels. Example: |
Height | Specified in pixels. Example: |
Note
You can also change the values by dragging the box symbols ( ) to other positions in the editor.
See also
Variable | Variable (integer data type). The value of the variable determines the index of the selected list element. |
Text list | Text list that determines the selection in the drop-down list. Example: The IDs of the selected text list must be in the value range of DWORD or DINT. This also applies to element variables of type “enumeration” with text list support. Please note: If a text list is not defined, then you must type a minimum value and maximum value in the Value range property. As an alternative to the text list, a Variable of type “Enumeration with text list support” can be used. |
Image pool | Collection of images for the drop-down list of the element. Example: |
Element property ‘List settings’
Displayed list that expands when a visualization user clicks into the element.
Row height |
|
Number visible rows | Restricts the number of rows in the drop-down list.
|
The images from an image pool can be displayed in the rows of the drop-down list. Requirement: An existing image pool is selected in the property.Parts of the image are clipped that are outside the drop-down list. |
|
Image height |
|
Image width |
|
Image offset | The value defines the horizontal position of the image within the row (in pixels). The value
|
Scrollbar size | Width of the scrollbar. The scrollbar is displayed when more entries are specified in the drop-down list than in Number visible rows. Default: |
Element property ‘Texts’
Tooltip | Character string (without single straight quotation marks) that is displayed as the tooltip of an element in runtime mode. Example: CODESYS accepts the specified text automatically into the GlobalTextList text list. Therefore, the texts can be localized. |
See also
Element property ‘Value range’
Value range limit |
Requirement: The Text list property is associated to a text list. |
Minimum value | Lower limit of the output value
|
Maximum value | Upper limit of the output value
|
Filter missing text entries | ![]() |
Element property ‘Text properties’
The properties contain fixed values for the text properties.
Usage of |
|
Individual text properties Requirement: The Individual settings text property is defined. |
|
Horizontal alignment | Horizontal alignment of the text within the element. |
Vertical alignment | Vertical alignment of the text within the element. |
Font | Example: Default
|
Font color | Example: Black
|
Transparency | Whole number (value range from Example:
Please note: If the color is a style color and already has a transparency value, then this property is write-protected. |
Element property ‘State variables’
The variables control the element behavior dynamically.
Invisible | Variable (
|
Deactivate inputs | Variable (
|
Element property ‘Access rights’
Requirement: User management is set up for the visualization.
Access rights | Opens the Access rights dialog box for changing the access rights for the element. Status messages:
|
See also
See also