Visualization Element ‘Combo box Array’¶
Symbol:
Tag: Common controls
This element lists rows with values in a drop-down list. The index of the selected row is written to a variable.
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 array |
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
Element property ‘Columns’
The “Combo box – Array” element visualizes an array variable or structure variable in a tabular view. The index of array elements or structure components is shown in a column or row. Two-dimensional arrays or structure arrays are shown in several columns. You specify the visualized variable in the Data array property. If a variable is assigned there, then you can specify the display of the table columns where the array elements are shown. You can customize each column that is assigned to an index [<n>].
Columns
|
Due to the structure of the variable that is defined in Data array, CODESYS determines the number of columns and defines them with the index <n>. Example: |
Max. array index | Optional. Variable (integer data type) or value. Defines up to which array index the data is displayed. |
Row height | Height of the rows (in pixels). |
Number visible rows | Optional. If the array is larger than the number of visible rows, then a scrollbar is included. |
Scrollbar size | Width of the vertical scrollbar (in pixels). |
Width | Column width (in pixels). |
Image column | ![]() |
Image configuration | |
Fill mode |
|
Transparency | ![]() |
Transparent color | This color is displayed as transparent. Requirement: The Transparency property is selected. |
Text alignment in column |
|
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 ‘Text properties’
The properties contain fixed values for the text properties.
Usage of |
|
Individual text properties Requirement: The Individual settings text property is defined. |
|
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 (
|