lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #11  
Unread 07-09-2011, 05:09 AM
Equendil Equendil is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2011
Posts: 52
Interestingly enough, I found out that a Turbine.UI.Control *will* fire MouseWheel events if it's a child of a control that does (or at least of Turbine.UI.Button, which I use as a container).
Reply With Quote
  #12  
Unread 07-09-2011, 05:50 AM
Fortunis's Avatar
Fortunis Fortunis is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Mar 2011
Location: Leeds, UK
Posts: 72
Quote:
Originally Posted by Equendil
Interestingly enough, I found out that a Turbine.UI.Control *will* fire MouseWheel events if it's a child of a control that does (or at least of Turbine.UI.Button, which I use as a container).

Well that event is already in the wiki here

The main problem was finding out direction, which the other guys pointed out.
__________________
Author of Mouse Cursor Highlighter Advanced

Last edited by Fortunis : 07-09-2011 at 05:52 AM.
Reply With Quote
  #13  
Unread 07-09-2011, 11:07 AM
SanDBoX's Avatar
SanDBoX SanDBoX is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Location: Idaho
Posts: 40
Quote:
Originally Posted by Fortunis
[code] 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.
One thing I have found very handy is to use the type function.
Code:
 WriteLine( type( args ) )
or you can build a function that will mine the key:data pairs out of a table. That way you just have to pass the args directly to it and you will find out all the information contained within. (really usefull when you cant figure out where the new data you inserted went)
Reply With Quote
  #14  
Unread 07-09-2011, 12:19 PM
Equendil Equendil is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2011
Posts: 52
Quote:
Originally Posted by Fortunis
Well that event is already in the wiki here

The main problem was finding out direction, which the other guys pointed out.
As you might find out, that's not the only problem:

Quote:
Originally Posted by Digital_Utopia
Also, make sure you're using a ListBox. Mousewheel events will not fire on a Control or a Window.
__________________
Author of LIP, Bootstrap and Baruk
Reply With Quote
  #15  
Unread 07-10-2011, 09:13 AM
Fortunis's Avatar
Fortunis Fortunis is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Mar 2011
Location: Leeds, UK
Posts: 72
Quote:
Originally Posted by SanDBoX
One thing I have found very handy is to use the type function.
Code:
 WriteLine( type( args ) )
or you can build a function that will mine the key:data pairs out of a table. That way you just have to pass the args directly to it and you will find out all the information contained within. (really usefull when you cant figure out where the new data you inserted went)
Thanks for them tips SanDBoX *Thumbs up*


Quote:
Originally Posted by Equendil
As you might find out, that's not the only problem:
Ive found many problems

---

Yeh i got confused with you saying mousewheel *will* fire on control. Maybe a quote from Digital_Utopia with that original comment was needed, cos i didnt realise you was correcting him.
__________________
Author of Mouse Cursor Highlighter Advanced

Last edited by Fortunis : 07-10-2011 at 09:19 AM.
Reply With Quote
Reply



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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Control.MouseWheel() event not working for you? Digital_Utopia Lua Programming Help (L) 7 06-20-2011 12:42 PM


All times are GMT -5. The time now is 01:11 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui