Handle EVT_CONTEXT_MENU directly in wxSTC (wxOSX)

A simulation of context menu event by handling directly EVT_RIGHT_UP was implemented in wxSTC in 451c5cc7b9, but later on, EVT_CONTEXT_MENU generation in wxOSX was fixed in 524c47aa3a so  simulation is no longer necessary and this event can be directly handled in wxSTC.
This commit is contained in:
Artur Wieczorek
2017-07-02 13:02:13 +02:00
parent 2971930ab8
commit f311807112
6 changed files with 6 additions and 32 deletions

View File

@@ -6437,8 +6437,8 @@ public:
@link wxStyledTextCtrl::wxSTC_POPUP_NEVER wxSTC_POPUP_* @endlink constants.
@remarks
When wxContextMenuEvent is used to create a custom popup menu,
this function should be called with wxSTC_POPUP_NEVER. Otherwise both
the custom and the default popup menus may be shown.
this function should be called with wxSTC_POPUP_NEVER. Otherwise
the default menu will be shown instead of the custom one.
*/
void UsePopUp(int popUpMode);