Auto-scroll textarea[] in formspecs

Post Reply
Josselin2
Member
Posts: 149
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

Auto-scroll textarea[] in formspecs

by Josselin2 » Post

I have some textarea[] elements that (deliberately) contain more text than can be displayed. Is there some clever hack that will auto-scroll the textarea[] to the bottom, every time the formspec is displayed?

User avatar
Krock
Developer
Posts: 4736
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Auto-scroll textarea[] in formspecs

by Krock » Post

Did you perhaps already ask this question elsewhere? It seems very familiar.

No. The GUIScrollBar instance of GUIEditBoxWithScrollBar (used for textarea) can currently not be controlled by formspec elements. However, you could request a feature on GItHub to implement that using an additional argument for "textarea"..
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Josselin2
Member
Posts: 149
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

Re: Auto-scroll textarea[] in formspecs

by Josselin2 » Post

I don't think so, I searched the forum and github for this topic, but found nothing.

User avatar
Krock
Developer
Posts: 4736
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Auto-scroll textarea[] in formspecs

by Krock » Post

Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Josselin2
Member
Posts: 149
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

Re: Auto-scroll textarea[] in formspecs

by Josselin2 » Post

Definitely a case of "two fools, one thought"

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests