Hi, I'm having a problem with the xlnt 2 gui lib. I use the textbox gadget to display instructions, help info, etc, in my game. The problem is that when text is added to a textbox, the textbox text ends up scrolled to the bottom. I need the text to be scrolled to the top so that the user can begin reading from the start without needing to scroll or home the text.
Basically I want to do the equivalent of pressing the 'home' key with the textbox gadget's scrollbar having the focus, but I need to do it using code. I've been elbow deep in the xlnt 2 code with no luck.
Thanks for any help.
Basically I want to do the equivalent of pressing the 'home' key with the textbox gadget's scrollbar having the focus, but I need to do it using code. I've been elbow deep in the xlnt 2 code with no luck.
Thanks for any help.