On Wed, Dec 4, 2013 at 3:06 PM, Victor Bombi <son...@telefonica.net> 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
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to