From: Andreas F. <an...@fa...> - 2013-11-23 21:30:03
|
Hi, I'm trying to port some C++ code to wxLua that derives a new class from wxTextCtrl and then overrides the OnRightClick() method of this class to do some custom stuff when the user presses RMB over the widget. Is it possible to do this in wxLua as well? I tried the following but it didn't work: local ctrl = wx.wxTextCtrl(...) ctrl.OnRightClick = function(event) print("test") end -- Best regards, Andreas Falkenhahn mailto:an...@fa... |