Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

AutoFit and autoscale the Text

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

AutoFit and autoscale the Text

Post by ahmedahmed1223 » 07 Jan 2017, 14:14

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?

User avatar
Etienne
Posts: 48
Joined: 20 Oct 2014, 19:46
Location: Los Angeles, California

Re: AutoFit and autoscale the Text

Post by Etienne » 04 Feb 2017, 21:32

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

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

Re: AutoFit and autoscale the Text

Post by ahmedahmed1223 » 05 Feb 2017, 17:21

Thanks man

Post Reply