Symbol:
Category: Special Controls
The element shows the contents of text files that are saved on the controller. Files can be encoded in ASCII or Unicode formats. A visualization user can also edit the text.
|
Are all element properties available? |
|---|---|
|
All properties are visible only after you select the Advanced option or the All categories filter in Properties. |
|
Element name |
Example: |
|
Element Type |
Text Editor |
The position defines the location and size of the element in the visualization window. This is based on the Cartesian coordinate system. The origin is located in the upper left corner of the window. The positive horizontal X-axis runs to the right. The positive vertical Y-axis runs downwards.
|
X |
The X-coordinate (in pixels) of the upper left corner of the element Example: |
|
Y |
The Y-coordinate (in pixels) of the upper left corner of the element Example: |
|
Width |
Specified in pixels Example: |
|
Height |
Specified in pixels Example: |
|
Font name |
Non-proportional font used by the visualization to display the contents of the file Example: Courier New |
|
Size |
Font size Example: |
|
File |
|
|
Variable |
Variable ( It is located in the file system of the controller. Example: |
|
Open |
Variable Example:
|
|
Close |
Variable ( Example:
|
|
Save |
Variable ( Example:
|
|
New |
Variable ( Example:
|
|
Edit |
|
|
Variable |
Variable ( Example: |
|
Find |
Variable ( Example:
|
|
Find next |
Variable ( Example:
|
|
Caret position |
|
|
Line |
Variable (integer data type) for the caret line Example: |
|
Column |
Variable (integer data type) for the caret column Example: |
|
Position |
Output variable (integer data type) for the output of the absolute position of the caret in the text Example: |
|
Set cursor |
Variable Example:
Note: The variable is used as the control variable for an input event triggered by a visualization user. |
|
Selection |
||||
|
Start position |
Output variable (integer data type) for the output of the absolute position where the text selection starts Example: |
|||
|
End position |
Output variable (integer data type) for the output of the absolute position where the text selection ends Example: |
|||
|
Start line number |
Output variable (integer data type) for the output of the line where the text selection begins Example: |
|||
|
Start column index |
Output variable (integer data type) for the output of the column where the text selection begins Example: |
|||
|
End line number |
Output variable (integer data type) for the output of the line where the text selection ends Example: |
|||
|
End column index |
Output variable (integer data type) for the output of the column where the text selection ends Example: |
|||
|
Line to select |
Variable (integer data type) for the line number which is selected Note: The selection is controlled by the variables in the Trigger selection property. |
|||
|
Set selection |
Variable ( Example:
If the line is not in the current text segment of the text editor, then the text segment is moved to this line.
|
|||
|
Error handling |
|
|
Variable for error code |
Variable (integer data type) for the error number in case of error Example: The error codes are declared in |
|
Variable for content changed |
Variable ( Example:
|
|||
|
Variable for access mode |
Variable ( Example:
|
|
Maximum line length |
Maximum number of characters per line |
|
Editor mode |
|
|
Character encoding |
Character encoding of the new file:
|
|||
|
New line character sequence |
End of line character of the new file:
|
|
The properties contain fixed values for the coordinates of the point of rotation. The rotation point is displayed in the editor as the
|
||||
|
X |
X-coordinate of the point of rotation |
|||
|
Y |
Y-coordinate of the point of rotation |
The properties contain IEC variables for controlling the position of the element dynamically. The reference point is the upper left corner of the element. At runtime, the entire element is moved.
|
Movement |
|||||
|
X |
Increasing this value at runtime moves the element to the right. |
||||
|
Y |
Increasing this value at runtime moves the element downwards. |
||||
|
Rotation |
Variable (numeric data type) for the angle of rotation (in degrees) Example: The midpoint of the element rotates at the Center point. This rotation point is shown as the At runtime, the alignment of the element remains the same with respect to the coordinate system of the visualization. Increasing the value rotates the element to the right. |
|
|||
|
Scaling |
Variable (integer data type) to trigger a centric stretching Example: The reference point is the Center property. The value |
||||
|
Interior rotation |
Variable (numeric data type) for the angle of rotation (in degrees) Example: At runtime, the element rotates about the point of rotation specified in Center according to the value of the variable. In addition, the alignment of the element rotates according to the coordinate system of the visualization. Increasing the value in the code rotates clockwise. The rotation point is shown as the
|
|
|||
|
Tip |
|---|---|
|
You can combine the variables to a Unit conversion. |
|
Tip |
|---|---|
|
The X, Y, Rotation, and Interior rotation properties are supported by the "Client Animation" functionality. |
The variables control the element behavior dynamically.
|
Invisible |
Variable (
|
|
Tip |
|---|---|
|
The Invisible property is supported by the "Client Animation" functionality. |
|
Tip |
|---|---|
|
These properties are available only when you have selected the Support client animations and overlay of native elements option in the Visualization Manager. |
|
Animation duration |
Variable for the duration (in milliseconds) in which the element runs an animation
Animatable properties
The animated movement is executed when at least one value of an animatable property has changed. The movement then executed is not jerky, but is smooth within the specified animation duration. The visualization element travels to the specified position while rotating dynamically. The transitions are smooth. |
|
Move to foreground |
Variable (
Example: |
|
Note |
|---|---|
|
Available only when a user management is set up for visualization. |
|
Access Rights button |
Opens the Access Rights dialog. There you can edit the access privileges for the element. Status messages:
|


