Set EventObject in event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -650,7 +650,8 @@ void wxMacDataViewDataBrowserListViewControl::DataBrowserGetContextualMenuProc(M
|
||||
*helpItemString = NULL;
|
||||
// create information for a context menu event:
|
||||
wxDataViewEvent dataViewEvent(wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU,dataViewCtrlPtr->GetId());
|
||||
|
||||
|
||||
dataViewEvent.SetEventObject(dataViewCtrlPtr);
|
||||
dataViewEvent.SetModel(dataViewCtrlPtr->GetModel());
|
||||
// get the item information;
|
||||
// theoretically more than one ID can be returned but the event can only handle one item, therefore all item related data is using the data of the first item in the array:
|
||||
|
Reference in New Issue
Block a user