MouseWheel Event
Does anyone know how to check for MouseWheel up and down events (seperatly), or if its even possible?
|
I know they work, but I'll be damned if I can remember how I used them!
|
Thx for your response MrJackdaw :)
Spent ages trying to figure it out, without any luck. Ive moved onto dragging the window instead of mousewheel scrolling, but still looking for an answer to the mousewheel scrolling. btw its not a window setup that can use an effecient scrollbar. It has one but can only operate it while having mouse pointer on the scrollbar :s Turbine seriously need to improve functionality of the API. Theres many things ive come across that should work but they just dont make sense. Take [SetStretchMode] for instance. An image needs [SetStretchMode] if its to be altered in size but in using [SetStretchMode], its FORCED to be visible outside its parent window boundary :mad: |
As far as I know there is only one event, but you can tell which direction by the value given. One direction will give you a positive value, the other negative.
Code:
if(args.Direction == -1) then |
Also, make sure you're using a ListBox. Mousewheel events will not fire on a Control or a Window.
|
I use labels and quickslots to capture some mouse wheel events......
|
Thanks for that, guys. I'll check args.direction tomorrow and report back :)
I use labels as interior windows. A listbox isnt really the thing to use for what im doing :)... Im not scrolling just text, which is how the default scrollbars are setup usually. Im scrolling images, labels, checkboxes, other scrollbars, buttons... Why didnt i just say everything lol! Alot of obstacles to get past due to the API problems, as im sure your aware ;) |
Quote:
Quote:
|
Don't know if this is any use, but this comes from when I was fooling around trying to understand the MouseWheel event;
Code:
NewQuickslot=class (Turbine.UI.Lotro.Quickslot) |
Quote:
Code:
Window.MouseWheel=function(sender, args) Ive learnt something new. I wonder what else you/i could find with debug dump. I did try to WriteLine(args) but got empty line printed (before making this thread). So i guess in the future when i get an empty line, it signifies that there is debug info attached to it. :) |
All times are GMT -5. The time now is 07:37 AM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI