Use localizable text in a control
The EASY UI controls possess specific properties that allow you to establish access to the texts in the language switching system. Some controls display only a text and potentially a graphic. Other controls display a process value and can additionally show a label.
To configure controls, the graphical design interface must be open with the desired control selected. All properties of the control are listed in the Properties window.
Bind text definition directly
-
Locate the specific property LocalizableText in the list and click the
button. The Select Localizable Text dialog opens. -
Select the desired text and confirm with OK. The dialog closes, and the full name of the text is displayed in the property.
LocalizableTextOff, LocalizableTextOn, LocalizableLabelText, or LocalizableUnitText.Display localizable texts indirectly
-
Variable texts
-
Controls with a process variable binding, such as the
NumericVarInorNumericVarOut, can retrieve the text for an additional label from the Text parameter of the bound process variable definition.-
Locate the specific property
VariableNamein the list and click the
button. The variable selection dialog opens. -
Select the desired variable and confirm with OK. The dialog closes, and the full name of the variable is displayed in the property.
-
Set the value of the control's
UseVariableTextproperty toTrue. The text of the process variable is displayed in the control as a label.
-
-
-
Alarm texts
-
Another example are the AlarmLine and AlarmList controls. These display an active alarm from the Alarms system module. Here, the object definition of an alarm also contains the Text parameter, which stores a localizable text. This is then used automatically by the control.
-
In this case, no further configuration is required.
-
-