Re: [wxlua-users] Can't call some wxKeyboardState methods on wxMouseEvent, but should

2013-09-11 Thread Paul K
Hi John,

 That function (and class hierarchy) only exists in wxWidgets 2.9 onwards. 
 It's just an alternative to the current ControlDown(), AltDown(), ShiftDown() 
 functions. Will those work for you in the near term?

Yes, but instead of checking event:GetModifiers() ==
wx.wxMOD_CONTROL I need to do event:ControlDown() and not
event:AltDown() and not event:ShiftDown() and not event:MetaDown() or
something along those lines.

Paul.

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[wxlua-users] Can't call some wxKeyboardState methods on wxMouseEvent, but should

2013-09-08 Thread Paul K
Hi John,

I'm trying to call wx.wxMouseEvent():GetModifiers(), but get wxLua:
Unable to call an unknown method 'GetModifiers' on a 'wxMouseEvent'
type.

wxMouseEvent is inherited from wxKeyboardState (among other things),
so it should definitely work. In fact, I can call some methods (like
ControlDown() and CmdDown()) just fine, but none of the modifier
methods (GetModifiers(), HasModifiers(), HasAnyModifiers(), and so on)
work (http://docs.wxwidgets.org/trunk/classwx_keyboard_state.html).

I checked wxbind and indeed GetModifiers only shows up for wxKeyEvent
and nothing else. Can you please add it to wxMouseEvent as well? Thank
you.

Paul.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391iu=/4140/ostg.clktrk
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users