Hello,
Seemingly, the standard GUI textbox can have any dimensions. However, no matter how large its height is, it will only accept text on one single line. I would have expected a way to configure the textbox so that long text wraps around and fills several lines, but alas, no dice.
I'd even hoped for a mechanism by which a textbox would accept a typed shift-return and convert it into '[' internally or at least accept a typed '[' and display it as a newline or at the very least accept a typed '[' and put a '[' into the Text string. Nope. It seems to simply gobble both shift-returns and '['s without further ado.
My mind boggles. I can't “wrap†(pun intended) my mind around the fact that this sort of thing wouldn't have been implemented into the engine about a decade ago. 8-0 Anyway, never mind that. So, what would be the least painful way to get a "proper" textbox into a GUI that would wrap long text?
Simpliest I can think of is a Label that accumulates pressed keys as text characters ( e.g using "%c" formatting ); and backspace deletes last character. You may add | character for a caret too (or any other).
Here's a module: TextArea v0.0.1.1 BETA - Multi-line textboxes! (https://www.adventuregamestudio.co.uk/forums/index.php?topic=34560.0)
Quote from: Khris on Thu 14/05/2020 08:23:34
Here's a module: TextArea v0.0.1.1 BETA - Multi-line textboxes! (https://www.adventuregamestudio.co.uk/forums/index.php?topic=34560.0)
Heh. That thread started in 2008, so I wasn't very far off with my estimate of "about a decade ago". 8-) Thanks for the tip, I'll look into it.