Add option to display custom context menu in stc sample

This option could be useful to demonstrate ability to replace (override) standard Scintilla context menu with custom one. Switching between standard and custom popup menu is done with "Extra -> Custom popup menu" menu option.
This commit is contained in:
New Pagodi
2017-03-16 23:31:17 +01:00
committed by Artur Wieczorek
parent 6aa5d07229
commit 962979ebf1
4 changed files with 34 additions and 1 deletions

View File

@@ -101,6 +101,7 @@ public:
void OnMultipleSelections(wxCommandEvent& event);
void OnMultiPaste(wxCommandEvent& event);
void OnMultipleSelectionsTyping(wxCommandEvent& event);
void OnCustomPopup(wxCommandEvent& evt);
// stc
void OnMarginClick (wxStyledTextEvent &event);
void OnCharAdded (wxStyledTextEvent &event);