Mouse wheel scrolling
I'm creating an inventory, and I'm using a GuiScrollCtrl to display the items. The problem I'm having is that the mouse scroll wheel scrolls at some odd number, whereas I'd like to control it.
I've tried changing 'mousescrolllines' (which has an effect, but can't be set to zero or to a decimal). I've also tried setting 'active' to false, but this makes all the controls in it un-clickable. Basically, I would like a way to scroll the control manually when the scroll wheel is moved. Does anyone have any ideas? I've never needed to do this before. |
I suggest using control.onMouseWheelDown(), control.onMouseWheelUp() and control.scrolldelta() if you can somehow manage to disable the default mousewheel scrolling behavior of the control. I have no idea how you could possibly disable that though, didn't have any similar problems before. I will probably try it when I have some time later today.
Edit: Okay, I played around with that a bit. I couldn't disable the default scroll stuff, and the onMouseWheelDown() and onMouseWheelUp() events don't trigger in the main part of the scroll control. Guess I can't help here. |
Quote:
|
If you're talking about the mouse wheel scrolling too many times upon on tick, you can do this to fix:
PHP Code:
PHP Code:
I don't think you can *disable* the default scrolling, which has been a problem for me quite a few times, but if you want to scroll to decimal points, then scrollto should accomplish it fine. |
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
All times are GMT +2. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.