-- Try this
frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Testing")
panel = wx.wxPanel(frame, wx.wxID_ANY)
cal = wx.wxCalendarCtrl(panel,wx.wxID_ANY, wx.wxDefaultDateTime,
wx.wxDefaultPosition, wx.wxDefaultSize)
frame:Show()
frame:Connect(wx.wxID_ANY, wx.wxEVT_CHAR_HOOK,
function(event)
print('down frame', event, event.KeyCode)
event:Skip()-- this is probably not necessary
end)
panel:Connect(wx.wxID_ANY, wx.wxEVT_CHAR_HOOK,
function(event)
print('down panel', event, event.KeyCode)
event:Skip()
end)
cal:Connect(wx.wxID_ANY, wx.wxEVT_CHAR_HOOK,
function(event)
print('down calendar', event, event.KeyCode)
event:Skip()
end)
I think this really works.
I did not test it extensively but it look good to me.
Good luck
Andre
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users