I want to display a text with the value followed by the unit. The issue I'm facing is as follows,
code:
var string a = "5459" ;
AttrText.String = "{parc}{fnt0}"+a+"{fnt1}µS/cm";
output:
I wanted to get the unit in the center, so I tried a new way,
code:
var string a = "5459" ;
AttrText.String = "{lay*,*}{colm}{parr}{fnt0}"+a+"{colm}{fnt1}µS/cm";
output:
In this way I got the unit centered, but the text wraps at the layout endpoint.
I want to achieve an output like this but with only one text string. The user sets the value, the user can set any digit they prefer but the text should extend with center and middle oriented for the whole time.
Eg:
We can't set a default size for the coloumn layout because the whole text should always be center-oriented no matter what value we feed.
Any ideas how can we achieve this?