tree control and dc::drawlines bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -361,13 +361,13 @@ void MyFrame::OnListDrag( wxListEvent &event )
|
||||
void MyFrame::OnTreeSelected( wxTreeEvent &event )
|
||||
{
|
||||
wxDirInfo *info = (wxDirInfo*) event.m_item.m_data;
|
||||
SetStatusText( info->GetPath() );
|
||||
if (info) SetStatusText( info->GetPath() );
|
||||
};
|
||||
|
||||
void MyFrame::OnTreeKeyDown( wxTreeEvent &event )
|
||||
{
|
||||
wxDirInfo *info = (wxDirInfo*) event.m_item.m_data;
|
||||
m_rightFile->GoToDir( info->GetPath() );
|
||||
if (info) m_rightFile->GoToDir( info->GetPath() );
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user