GuiScrollCtrl - Getting max y pos
Is there a way to check the maximum Y position of a Gui Scroll Control?
Think Client RC. If chat scroll is at the bottom when more text is added, it scrolls down and shows it, whereas if scroll bar is up a tad, it doesn't scroll down to encompass the new text - it simply stays where it is. EDIT- Nobody knows how to get a similar effect to the Client RC? |
Well, in case anyone else also has this problem, I'll post my solution:
PHP Code:
|
Try this:
PHP Code:
|
Quote:
|
I feel like that would trigger a GuiScrollControl.onResize() and you can do the same thing there.
PHP Code:
|
Quote:
|
This is how I did it in the Client RC (copied/pasted directly out of the script):
PHP Code:
|
Ah lovely, thanks a lot Tig.
And cheers for responding, Jer and Chris. |
All times are GMT +2. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.