Quote from
Gaev on December 3, 2021, 9:52 pm
@krakerman
When using a Text Entry object and I want to align the text inside the object to be centered via Vertical height of the box how can you do that if possible?
One trick that was discussed in the old (NeoBook) forums was to use a Text object that ...
- is the same size as your TextEntry object (say TextEntry1)
- is positioned to cover the TextEntry object (same right and depth numbers) and Text object is Brought to Front
- has at its content [TextEntry1]
- is assigned the desired properties for Font, Color, Margins etc.
Now, when user enters values in TextEntry, the Text object mirrors the values in the desired format.
You might play around with this idea to see if it meets your needs.
@krakerman
When using a Text Entry object and I want to align the text inside the object to be centered via Vertical height of the box how can you do that if possible?
One trick that was discussed in the old (NeoBook) forums was to use a Text object that ...
- is the same size as your TextEntry object (say TextEntry1)
- is positioned to cover the TextEntry object (same right and depth numbers) and Text object is Brought to Front
- has at its content [TextEntry1]
- is assigned the desired properties for Font, Color, Margins etc.
Now, when user enters values in TextEntry, the Text object mirrors the values in the desired format.
You might play around with this idea to see if it meets your needs.
Vadim and Krakerman have reacted to this post.