![]() |
GuiMLTextCtrl and GuiScrollCtrl
Everytime I add a new GuiMLTextCtrl inside the GuiScrollCtrl, it scrolls all the way up, so I fix this by using scrolltoBottom(). However it's annoying because it looks like the scroll bar is glitched. Is there a way to keep that scroll bar down?
BTW, this is for chatting. |
What do you mean? Don't add a new one each time!
|
Quote:
GuiMLTextCtrl.text @= "Whatever.."; |
What I mean is, this is a chatting system inside a trading system.
Everytime onPlayerChats is called, it creates a new GuiMLTextCtrl inside a GuiScrollCtrl. But, the scrollbar goes all the way up, which prevents the players from seeing the most recent chat message without scrolling down themselves. Even when you don't add a new one each time it'll still do that since the text variable is being edited. *Tried it*. |
It doesn't go up to the top, it stays where it is if you add something to the text variable.
Just use scrolltobottom() when you add something. |
PHP Code:
|
Why the sleep?
|
I think to show it is going up ...
|
| All times are GMT +2. The time now is 04:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.