Set the object for context menu events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3155,6 +3155,7 @@ void wxWindowMac::OnMouseEvent( wxMouseEvent &event )
|
|||||||
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU,
|
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU,
|
||||||
this->GetId(),
|
this->GetId(),
|
||||||
this->ClientToScreen(event.GetPosition()));
|
this->ClientToScreen(event.GetPosition()));
|
||||||
|
evtCtx.SetEventObject(this);
|
||||||
if ( ! HandleWindowEvent(evtCtx) )
|
if ( ! HandleWindowEvent(evtCtx) )
|
||||||
event.Skip() ;
|
event.Skip() ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user