Fixed scrolling problem where scrollbar was taken to be a valid child window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-08-07 15:58:51 +00:00
parent e3cdca140e
commit 307c2b253f
2 changed files with 7 additions and 0 deletions

View File

@@ -145,6 +145,8 @@ wxGTK:
wxMac:
- Fixed a glitch where clicking on a scrollbar (but not moving the scrollbar)
would cause the window to scroll.
2.8.8
-----

View File

@@ -1352,6 +1352,11 @@ void wxScrollHelper::HandleOnChildFocus(wxChildFocusEvent& event)
if ( win == m_targetWindow )
return; // nothing to do
#ifdef __WXMAC__
if (wxDynamicCast(win, wxScrollBar))
return;
#endif
// Fixing ticket: http://trac.wxwidgets.org/ticket/9563
// When a child inside a wxControlContainer receives a focus, the
// wxControlContainer generates an artificial wxChildFocusEvent for