OOPS  My mistake it should prefixed with wx.

So most of them works but  not  wxEVT_LEAVE_WINDOW

frame=wx.wxFrame(wx.wxNull, 10001, "test")
--frame:ConnectEvent(10001, wx.wxEVT_ENTER_WINDOW, function (event) print"Enter work" end)
frame:ConnectEvent(10001, wx.wxEVT_LEAVE_WINDOW, function (event) print"Leave not work" end) --not work
--frame:ConnectEvent(10001, wx.wxEVT_MOTION, function (event) print"Motion Work" end)
--frame:ConnectEvent(10001, wx.wxEVT_LEFT_DCLICK, function (event) print"work" end)
--frame:ConnectEvent(10001, wx.wxEVT_LEFT_DOWN, function (event) print"Left down work" end)
--frame:ConnectEvent(10001, wx.wxEVT_LEFT_UP ,function (event) print"Left up work" end)
--frame:ConnectEvent(10001, wx.wxEVT_RIGHT_DCLICK ,function (event) print"Right dclick work" end)
--frame:ConnectEvent(-1, wx.wxEVT_RIGHT_DOWN ,function (event) print"Right work" end)
--frame:ConnectEvent(-1, wx.wxEVT_RIGHT_UP ,function (event) print"Right up work" end)
frame:Center()
frame:Show(true)
For the HTMLWIndow I think the COMMAND EVENT works but not for mouse event which is natural for a button, thus I think it is ok

Sorry for a big noise. :-)

ANyway the wx.wxEVT_LEAVE_WINDOW not work which I do not understand yet..




John Labenski <[EMAIL PROTECTED]> wrote:
On 5/29/06, Steve Kieu <[EMAIL PROTECTED]> wrote:
> I am playing with the sample htmlwin.wx.lua. What I want is to catch the
> event frm the object embeded in the html window. So far, failled :-)
>
> What I did is replace the text box widgets with a button, with an ID and
> then use ConnectEvent as normal
>
> frame:ConnectEvent(button_ID, wx.wxEVT_BUTTON_CLICKED, OnCLickFunc)
> (Still use version 2.6.2.0 so ConnectEvent is right )
>
> it seems the event is not fired, or not traverse upward to the frame. Even I
> use html:ConnectEvent; not work as well.
>
> How can I make it work or is it impossible?
>
> Note: The similar work in c++ though

Can you post a little bit of code to show how it should work and what
I should expect to see based on your C++ tests. I have never used the
HTML widget in lua or C++.

Thanks,
John Labenski


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users



S.KIEU


On Yahoo!7
360°: Your own space to share what you want with who you want!

Reply via email to