Re: [wxlua-users] Overriding OnRightClick

2013-11-25 Thread Andreas Falkenhahn
On 25.11.2013 at 05:17 John Labenski wrote: > On Sun, Nov 24, 2013 at 5:13 AM, Andreas Falkenhahn > wrote: > > Hi John, > > >>> 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

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread John Labenski
On Sun, Nov 24, 2013 at 5:13 AM, Andreas Falkenhahn wrote: > Hi John, > > > >> 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.

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread Paul K
Hi Andreas, > My control is a wxTextCtrl so I don't think the tree ctrl events will work > on them... My bad; I misread wxTextCtrl as wxTreeCtrl. Apologies for the noise. Paul. -- Shape the Mobile Experience: Free Subsc

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread Andreas Falkenhahn
Hi John, On 24.11.2013 at 06:44 John Labenski wrote: > On Nov 23, 2013 4:30 PM, "Andreas Falkenhahn" wrote: >> 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

Re: [wxlua-users] Overriding OnRightClick

2013-11-24 Thread Andreas Falkenhahn
Hi Paul, On 24.11.2013 at 02:12 Paul K wrote: > Hi Andreas, >> 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. > I'm using wxEVT

Re: [wxlua-users] Overriding OnRightClick

2013-11-23 Thread John Labenski
On Nov 23, 2013 4:30 PM, "Andreas Falkenhahn" wrote: > > 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. Catch EVT_RIGHT_UP

Re: [wxlua-users] Overriding OnRightClick

2013-11-23 Thread Paul K
Hi Andreas, > 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. I'm using wxEVT_COMMAND_TREE_ITEM_MENU; I think there is also TREE_ITE