2020-06-29 12:31 AM
Hi,
I want to use wildcard texts, which align text to right instead of left.
I have empty text items (nothing but <value>), which have text area width set to full width of the screen. I need the text inside the text area to be "anchored" to right side, so that the added text will "grow" left, instead of right.
Align feature does not seem to do anything.
So far I cannot figure out anything else than manually call textItemRight.moveTo(XPOS - textItemRight.getWidth(), textItemRight.getY());
to align texts to right. This is cumbersome to do manually for many texts.
Solved! Go to Solution.
2020-06-29 12:57 AM
Ah, found the answer here:
It seems I should not call resizeToCurrentText()... Now the text aligns to the right!
2020-06-29 12:57 AM
Ah, found the answer here:
It seems I should not call resizeToCurrentText()... Now the text aligns to the right!
2020-06-29 01:39 AM
Yea, the use of resizeToCurrentText() can be a bit tricky when working with Wildcards.
2020-06-29 01:45 AM
Additional question:
Why resources do not have alignment option?
Now I need to create 20+ single use texts to be able to use the alignment for the texts, instead of using one resource which has the <value> tag.
2020-06-29 01:49 AM
There is an alignment option for text resources. Not sure i follow you.
2020-06-29 01:53 AM
Ah yes, you are right, found it! It is of course set in the resources tab, instead of the Text Area settings (where single use text alignment is set)
Great, thank you!
2020-06-29 01:56 AM
No problem :)