Author Topic: GUI Scroll control and the child, GUI MLText control  (Read 526 times)

I don't know why but what property should be set to have the scroll control automatically scroll down as new text is being inputted. For some reason it scrolls all the way back up to the top. Thanks.

Edit, I've tried a few things, but they have not worked.
« Last Edit: June 13, 2012, 11:04:51 PM by elm »

You need to call %scrollCtrl.scrollToBottom();

You need to call %scrollCtrl.scrollToBottom();

Yeah but that is hacky and doesn't look right. I tried calling it instantly, but it was too fast, and it scrolled to the bottom, then back up. With a schedule, it looks terrible, doesn't look correct. Anything else?
« Last Edit: June 14, 2012, 12:41:37 AM by elm »

You need to call %scrollCtrl.scrollToBottom();
oh my god yessssssssssssssss

i've needed this so bad!!!

oh my god yessssssssssssssss

i've needed this so bad!!!

.dump(); is your friend.

.dump(); is your friend.
i didn't even think of calling that on it




DUMP ALL THE THINGS

If you mean the MLTextEdit control, then it will automatically scroll down as new text is put in, as long as you have the right relative positioning.

For the MLText control, then simply setting its vertical position negative should do the trick.