SelectItem() now sends a wxEVT_SELECTED notification.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -714,12 +714,12 @@ bool wxTreeCtrl::SelectItem(long itemId)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
SelectItem(pItem, FALSE /* no events */);
|
SelectItem(pItem);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
};
|
};
|
||||||
|
|
||||||
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents)
|
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item)
|
||||||
{
|
{
|
||||||
if (m_current != item)
|
if (m_current != item)
|
||||||
{
|
{
|
||||||
@@ -732,8 +732,7 @@ void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents)
|
|||||||
m_current->SetHilight( TRUE );
|
m_current->SetHilight( TRUE );
|
||||||
RefreshLine( m_current );
|
RefreshLine( m_current );
|
||||||
|
|
||||||
if ( bDoEvents )
|
m_current->SendSelected( this );
|
||||||
m_current->SendSelected( this );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user