Page 1 of 1
AutoFit and autoscale the Text
Posted: 07 Jan 2017, 14:14
by ahmedahmed1223
I am a newbie to Ventuz PLE software and i need to create a input field so the user can input text in any length that auto fit and auto scaled to rectangle.
is there any idea how to do that?
Re: AutoFit and autoscale the Text
Posted: 04 Feb 2017, 21:32
by Etienne
If you bound the Rectangle's Size X property to the Block Text's BoudingBoxWidth property, the rectangle will grow as you enter text. This works as-is if your BlockText's TextAlignment and LineAlignment are set to Center.
Otherwise, if you use Near for TextAlignment you will need to use a Float Expression to control the position of the rectangle:
1. Add an axis in front of your rectangle
2. Add a Float Expression and attach the rectangle's Size X to the A input
3. Use "A/2" as the Expression
Re: AutoFit and autoscale the Text
Posted: 05 Feb 2017, 17:21
by ahmedahmed1223
Thanks man