I’m wanting to figure out when the text in a label is being truncated because it is too long. I see that when this happens a set of periods are displayed on the trailing end, as shown in the picture. I’m wondering if I can reference anything in scripting such as event.source.textTruncated for an example to let me know when the text is too long.
The reason for this is when the text is too long, I’ve got a timer on the template that runs a script on a property change event (timer value), and I manipulate the text in the label so as to make it traverse from one side to another in a continuous loop. However I only want the script to execute if the length of the text is too long to display in the first place, as the text is changing depending on what message it is pulling back from a SQL DB. At the moment I’ve set an arbitrary number such as if len(text) > 20 then enable timer.