while ( node )
{
wxWindow *child = node->GetData();
+ node = node->GetNext();
+#ifdef __WXMAC__
+ if ( m_winParent->MacIsWindowScrollbar( child ) )
+ continue;
+ hasRealChildren = true ;
+#endif
if ( child->AcceptsFocus() )
{
return true;
}
-
-#ifdef __WXMAC__
- wxScrollBar *sb = wxDynamicCast( child , wxScrollBar ) ;
- if ( sb == NULL || !m_winParent->MacIsWindowScrollbar( sb ) )
- hasRealChildren = true ;
-#endif
- node = node->GetNext();
}
#ifdef __WXMAC__
while ( node )
{
wxWindow *child = node->GetData();
+ node = node->GetNext();
+#ifdef __WXMAC__
+ if ( child->GetParent()->MacIsWindowScrollbar( child ) )
+ continue;
+#endif
+
if ( child->AcceptsFocusFromKeyboard() && !child->IsTopLevel() )
{
#ifdef __WXMSW__
child->SetFocusFromKbd();
return true;
}
-
- node = node->GetNext();
}
return false;