m_parent->DoAddChild( this );
- PostCreation();
-
- SetBestSize(size);
-
- SetBackgroundColour( parent->GetBackgroundColour() );
-
- Show( TRUE );
+ PostCreation(size);
return TRUE;
}
);
}
-void wxScrollBar::ApplyWidgetStyle()
+wxSize wxScrollBar::DoGetBestSize() const
{
- SetWidgetStyle();
- gtk_widget_set_style( m_widget, m_widgetStyle );
+ return wxControl::DoGetBestSize();
}
-wxSize wxScrollBar::DoGetBestSize() const
+// static
+wxVisualAttributes
+wxScrollBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
- return wxControl::DoGetBestSize();
+ return GetDefaultAttributesFromGTKWidget(gtk_vscrollbar_new);
}
#endif