Vai al contenuto

StringChooserAdvanced

Component that displays a string by taking it from the database of strings, based on the value of a variable read by the PLC.It has the following properties:
  • label: label that identifies the data on the PLC (allowed formats: label, label[constant], label[label2])
  • offset: value to be added to label to obtain number of string required. Can be empty (= 0), contain a constant, a local variable or a label on PLC. Useful for parameterizing pages that access strings of a table whose index can be changed at runtime or design time by changing the offset without changing the PLC program.
  • parameters: dynamic parameters to replace the string. Lets you list (separated by comma) PLC or local labels to replace any substrings %1, %2, %3, etc. These properties let you manage complex strings composed of text and data whose position in the string can vary according to the active language. Example: parameters: gqt_DateDay, gqt_DateMonth, gqt_DateYear string in Italian: “Oggi è il %1/%2/%3” string in English: “Today is the %2/%1/%3” Note: when using these properties, the string is displayed only after the PLC has read all of the listed labels. If even just one is not on the PLC, the string will never be represented (NB: the fault is signaled with a WARNING message visible in telnet).
  • arcWidth: arc width at the component vertex
  • gradient: see Shared properties
  • border: see Shared properties
  • customFont: allows to select as component font, any font installed on the machine. Writing the name of the font, if is found, the font is used. Font size and style properties, are used also if customFont is enabled.
Please note: using char “\” as separator, it’s possible to divide the text on multiple lines. To increase space between lines use more than one “\” chars as separator (example: “\\\”).