Dynamic Text Control
The PDTS can use the UIText command in a local task to dynamically alter the displayed text on buttons and text components, making it possible to create responsive custom controls and indicators.
The UIText command requires the following:
-
The latest versions of System Builder, UI Creator, and PDTS firmware.
-
A UI made in the UI Creator and loaded to the PDTS.
-
The target Button/Text ID from the UI Creator, shown under Properties > Behaviour.
Buttons must have the Properties > Appearance > Text slider enabled to expose their ID.
Local Task Example
Task1()
{
UIText (ButtonId = 200, TextMessage = "New Text Here")
}
Set the following:
-
ButtonId (integer) - This property is used for both buttons and text components.
-
TextMessage - The replacement text for the component.