![]() |
Disable scrolling in guiscrollcontrols
I'm not sure if there is a way, but there should be a way to disable default scrolling on guiscrolls. I've seen a lot of people that would like to see this, and this would help some of us script our own scrolling systems.
Even if vscrollbar and hscrollbar are alwaysOff, you can still scroll with mousewheel... |
Arrow keys work as well. :(
|
You can accomplish it like so..
PHP Code:
Edit: Added a statement to prevent unneeded looping. |
scrollto() also triggers onScrolled(), so really you'd be ending up with a loop. I don't think it'd be unreasonable to have a flag that disables default scrolling.
|
Quote:
Additionally, if I even tried scripting a workaround, it would end up getting really sloppy and needlessly complex. |
Tried making the profile of the scroll control non-modal ?
|
Quote:
|
Well the goal was to not let the user scroll anymore with mouse or keyboard. When you make the scroll control non-modal then the controls inside the scroll control can still remain modal.
|
Quote:
|
Quote:
|
What is this non-modal thing?
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 06:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.