Thread Tools Display Modes
09-08-11, 11:34 AM   #1
taurouset
A Deviate Faerie Dragon
 
taurouset's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 11
OnMouseWheelUp?

Does xml have any sort of <OnMouseWheelUp> or <OnMouseWheelDown> event? I can't seem to find anything on using the mouse wheel.

What I want to do is very simple:

Code:
<OnMouseWheelUp>
   var = var + 1;
   if (var >= 5) then
      var = 0;
   end
</OnMouseWheelUp>
  Reply With Quote
09-08-11, 11:49 AM   #2
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
The script handler is OnMouseWheel(self, delta); the direction is provided through the delta parameter: 1 for up, -1 for down.
__________________
... and you do get used to it, after a while.
  Reply With Quote
09-08-11, 12:11 PM   #3
taurouset
A Deviate Faerie Dragon
 
taurouset's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 11
Originally Posted by Foxlit View Post
The script handler is OnMouseWheel(self, delta); the direction is provided through the delta parameter: 1 for up, -1 for down.
Thank you.
  Reply With Quote
09-08-11, 03:03 PM   #4
taurouset
A Deviate Faerie Dragon
 
taurouset's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 11
Instead of making yet another thread, I'm just going to post here.

Can anyone show me how to create a DropDown menu? I've tried reading the tutorial on WoWWiki: http://www.wowwiki.com/Using_UIDropDownMenu, but either I'm doing something wrong, or there's something wrong with the tutorial.

I want to create the type of drop down that is used in WoW Options panels. The tutorial says to skip step two, if you want to make that type of drop down, yet in step 4, you need the frame that was made in step 2.
  Reply With Quote
09-09-11, 09:29 AM   #5
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
You really should post new threads for different discussions (that is their purpose, after all), but there is a comprehensive UIDropDownMenu tutorial here.

Also, you'd likely be better off using WoWPedia, since it contains all of the information WoWWiki does but is actually being updated (all of the major contributors/editors forked and moved there).
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » OnMouseWheelUp?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off