Report first selected item in selection change event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
636c8dabc6
commit
fdb45ab7e9
@ -972,7 +972,7 @@ void wxMacDataViewDataBrowserListViewControl::DataBrowserItemNotificationProc(Da
|
||||
{
|
||||
// initialize wxWidget event:
|
||||
wxDataViewEvent dataViewEvent(wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,dataViewCtrlPtr->GetId()); // variable definition
|
||||
|
||||
dataViewEvent.SetItem( dataViewCtrlPtr->GetSelection() );
|
||||
dataViewEvent.SetEventObject(dataViewCtrlPtr);
|
||||
dataViewEvent.SetModel (dataViewCtrlPtr->GetModel());
|
||||
// finally send the equivalent wxWidget event:
|
||||
|
Loading…
Reference in New Issue
Block a user