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:
parent
246037e229
commit
d37a02d0d5
1 changed files with 3 additions and 4 deletions
|
|
@ -714,12 +714,12 @@ bool wxTreeCtrl::SelectItem(long itemId)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
SelectItem(pItem, FALSE /* no events */);
|
||||
SelectItem(pItem);
|
||||
|
||||
return TRUE;
|
||||
};
|
||||
|
||||
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents)
|
||||
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item)
|
||||
{
|
||||
if (m_current != item)
|
||||
{
|
||||
|
|
@ -732,8 +732,7 @@ void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents)
|
|||
m_current->SetHilight( TRUE );
|
||||
RefreshLine( m_current );
|
||||
|
||||
if ( bDoEvents )
|
||||
m_current->SendSelected( this );
|
||||
m_current->SendSelected( this );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue