From: John L. <jla...@gm...> - 2013-12-04 20:21:00
|
On Wed, Dec 4, 2013 at 3:06 PM, Victor Bombi <so...@te...> wrote: > Hello > > Is there in wxlua a way to Connect afunction to all mouse events? > I get nil for w.wxEVT_MOUSE_EVENTS > > No, EVT_MOUSE_EVENTS is a C++ macro that expands into a Connect() for all the mouse event types which can't easily be duplicated. However, I prefer to connect to only the needed events. Note that you can call Connect() multiple times with the same Lua function to get similar behavior and be careful to minimize the work done in that function to avoid any sluggishness in the GUI. For reference: http://wxwidgets.10942.n7.nabble.com/EVT-MOUSE-EVENTS-func-and-wxEVT-MOUSE-EVENTS-td84404.html Regards, John |