Extend context menu of wxStyledTextCtrl

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
doctor_vitus
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Jan 04, 2013 8:43 pm
Location: Near Düsseldorf (Germany)

Extend context menu of wxStyledTextCtrl

Post by doctor_vitus »

Hi everybody,

is there a way to add items to the right-click context menu of wxStyledTextCtrl?

Thanks in advance an best regards,
doctor_vitus
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Extend context menu of wxStyledTextCtrl

Post by doublemax »

Looking through the STC source code, i don't think it's possible to extend it. You can only override it completely.
Use the source, Luke!
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 466
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Extend context menu of wxStyledTextCtrl

Post by New Pagodi »

I dont think there is anyway to modify the built in context menu, but you can call UsePopUp(wxSTC_POPUP_NEVER); and implement your own context menu.
doctor_vitus
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Jan 04, 2013 8:43 pm
Location: Near Düsseldorf (Germany)

Re: Extend context menu of wxStyledTextCtrl

Post by doctor_vitus »

Thanks a lot for your replies. I'll give it a try.
Post Reply