backported: fixed wxScrollBar creation when default size was used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-03-01 20:12:12 +00:00
parent a7d8906428
commit 2e2675087c
2 changed files with 14 additions and 0 deletions

View File

@@ -180,6 +180,8 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
PostCreation();
SetBestSize(size);
SetBackgroundColour( parent->GetBackgroundColour() );
Show( TRUE );
@@ -334,4 +336,9 @@ void wxScrollBar::ApplyWidgetStyle()
gtk_widget_set_style( m_widget, m_widgetStyle );
}
wxSize wxScrollBar::DoGetBestSize() const
{
return wxControl::DoGetBestSize();
}
#endif

View File

@@ -180,6 +180,8 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
PostCreation();
SetBestSize(size);
SetBackgroundColour( parent->GetBackgroundColour() );
Show( TRUE );
@@ -334,4 +336,9 @@ void wxScrollBar::ApplyWidgetStyle()
gtk_widget_set_style( m_widget, m_widgetStyle );
}
wxSize wxScrollBar::DoGetBestSize() const
{
return wxControl::DoGetBestSize();
}
#endif