- SetBackgroundColour(GetParent()->GetBackgroundColour());
- SetForegroundColour(GetParent()->GetForegroundColour());
+ if ( ShouldInheritColours() )
+ {
+ wxWindow *parent = GetParent();
+
+ wxCHECK_RET( parent, _T("a control without parent?") );
+
+ SetBackgroundColour(parent->GetBackgroundColour());
+ SetForegroundColour(parent->GetForegroundColour());
+ }
+
+#ifdef __WXPM__
+ //
+ // All OS/2 ctrls use the small font
+ //
+ SetFont(*wxSMALL_FONT);
+#else