Set event object in wxMSW wxTE_RICH control wxContextMenuEvent
Add forgotten SetEventObject() call. Closes #18460.
This commit is contained in:
parent
70f8bf4c86
commit
8dc3c38fad
1 changed files with 1 additions and 0 deletions
|
|
@ -2594,6 +2594,7 @@ void wxTextCtrl::OnRightUp(wxMouseEvent& eventMouse)
|
|||
wxContextMenuEvent eventMenu(wxEVT_CONTEXT_MENU,
|
||||
GetId(),
|
||||
ClientToScreen(eventMouse.GetPosition()));
|
||||
eventMenu.SetEventObject(this);
|
||||
|
||||
if ( !ProcessWindowEvent(eventMenu) )
|
||||
eventMouse.Skip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue