Avoid default child window focus behavior in generic wxListCtrl. Fixes #9563
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -621,6 +621,8 @@ public:
|
|||||||
|
|
||||||
void OnPaint( wxPaintEvent &event );
|
void OnPaint( wxPaintEvent &event );
|
||||||
|
|
||||||
|
void OnChildFocus(wxChildFocusEvent& event);
|
||||||
|
|
||||||
void DrawImage( int index, wxDC *dc, int x, int y );
|
void DrawImage( int index, wxDC *dc, int x, int y );
|
||||||
void GetImageSize( int index, int &width, int &height ) const;
|
void GetImageSize( int index, int &width, int &height ) const;
|
||||||
int GetTextLength( const wxString &s ) const;
|
int GetTextLength( const wxString &s ) const;
|
||||||
@@ -2255,6 +2257,7 @@ BEGIN_EVENT_TABLE(wxListMainWindow,wxScrolledWindow)
|
|||||||
EVT_SET_FOCUS (wxListMainWindow::OnSetFocus)
|
EVT_SET_FOCUS (wxListMainWindow::OnSetFocus)
|
||||||
EVT_KILL_FOCUS (wxListMainWindow::OnKillFocus)
|
EVT_KILL_FOCUS (wxListMainWindow::OnKillFocus)
|
||||||
EVT_SCROLLWIN (wxListMainWindow::OnScroll)
|
EVT_SCROLLWIN (wxListMainWindow::OnScroll)
|
||||||
|
EVT_CHILD_FOCUS (wxListMainWindow::OnChildFocus)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
void wxListMainWindow::Init()
|
void wxListMainWindow::Init()
|
||||||
@@ -2877,6 +2880,11 @@ void wxListMainWindow::HighlightAll( bool on )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxListMainWindow::OnChildFocus(wxChildFocusEvent& event)
|
||||||
|
{
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
|
||||||
void wxListMainWindow::SendNotify( size_t line,
|
void wxListMainWindow::SendNotify( size_t line,
|
||||||
wxEventType command,
|
wxEventType command,
|
||||||
const wxPoint& point )
|
const wxPoint& point )
|
||||||
|
Reference in New Issue
Block a user