Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Resizing a GUI Object depending on the size of a text
« previous
next »
Print
Pages: [
1
]
Author
Topic: Resizing a GUI Object depending on the size of a text (Read 456 times)
Bauklotz
August 27, 2010, 06:22:53 AM
I have this thing where I do infoNotice("Hello world"); and it should display a box with 'Hello world' in it. But it should have a background object that should resize according to the text, how would I do that? Like
+-----------+
| Hello world |
+-----------+
and
+---------------------------------+
| This automatically resizes the box |
+---------------------------------+
«
Last Edit: August 27, 2010, 06:24:40 AM by Bauklotz
»
Ad Bot
Advertisement
MegaScientifical
August 27, 2010, 12:11:10 PM
If you want it to send with RTB's GUI stuff, it can't resize. But if you have them download it, you might be able to document text sizes with a default one and have it estimate a full size. Since characters has inconsistent lengths and all.
M
August 27, 2010, 12:39:21 PM
When the text object resizes, then resize the parent. Check the infotip stuff in RTB for how it's done there.
MegaScientifical
August 27, 2010, 12:43:35 PM
Quote from: M on August 27, 2010, 12:39:21 PM
Check the infotip stuff in RTB for how it's done there.
Wow, I ponder that before, never checked the code and forgot about that.
The problem is that mostly adjusts to generic sizes, like how many lines and all. He wants it more specific to the lettering within.
Bauklotz
August 27, 2010, 12:47:56 PM
Quote from: M on August 27, 2010, 12:39:21 PM
GuiTextCtrl's only resize height automatically, not width.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Resizing a GUI Object depending on the size of a text