Added expose event compression.
Made wxUniv scrollbars not accept any focus if they are owned by the window (in contrast to stand alone scrollbars). Further corrections to ScrollWindow() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -164,6 +164,24 @@ wxScrollBar::~wxScrollBar()
|
||||
{
|
||||
}
|
||||
|
||||
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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user