#include "wx/univ/renderer.h"
#include "wx/univ/inphand.h"
#include "wx/univ/theme.h"
+#include "wx/log.h"
#define WXDEBUG_SCROLLBAR
{
}
+bool wxScrollBar::AcceptsFocus() const
+{
+ if (!wxWindow::AcceptsFocus()) return FALSE;
+
+ wxWindow *parent = (wxWindow*) GetParent();
+
+ if (parent)
+ {
+ if ((parent->GetScrollbar( wxHORIZONTAL ) == this) ||
+ (parent->GetScrollbar( wxVERTICAL ) == this))
+ {
+ return FALSE;
+ }
+ }
+
+ return TRUE;
+}
+
// ----------------------------------------------------------------------------
// scrollbar API
// ----------------------------------------------------------------------------
}
#endif // WXDEBUG_SCROLLBAR
- Refresh(TRUE, &rect);
+ Refresh(FALSE, &rect);
}
m_elementsState[n] &= ~wxCONTROL_DIRTY;