I have a line of text that is not allowed to wrap. When the text is too long to fit, it correctly displays an ellipse at the end. For example:
This text is too lo…
I am using the ToolTip to display the complete text.
How can I determine if the text has been truncated or not? I want to show the ToolTip only when the text is truncated because it is redundant to show the text in a ToolTip when it is already displayed in full.
Thanks for the suggestion, but this did not work for me. I neglected to state that my text element is not set to fit width to content. I do this because of the layout.
So I’m trying to detect whether the text is truncated separate from the actual width of the text element…