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

  1. Locate the specific property LocalizableText in the list and click the Ellipse button button. The Select Localizable Text dialog opens.

  2. Select the desired text and confirm with OK. The dialog closes, and the full name of the text is displayed in the property.

Some controls can represent multiple texts. In this case, additional properties are required for binding a text. The name of the property is then usually extended by a suffix or infix, e.g., LocalizableTextOff, LocalizableTextOn, LocalizableLabelText, or LocalizableUnitText.

Display localizable texts indirectly

  • Variable texts

    • Controls with a process variable binding, such as the NumericVarIn or NumericVarOut, can retrieve the text for an additional label from the Text parameter of the bound process variable definition.

      1. Locate the specific property VariableName in the list and click the Ellipse button button. The variable selection dialog opens.

      2. Select the desired variable and confirm with OK. The dialog closes, and the full name of the variable is displayed in the property.

      3. Set the value of the control's UseVariableText property to True. 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.