Font fix for OS/2 common control creation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-08-05 03:13:59 +00:00
parent 760a4fb945
commit 344e7ee2c5

View File

@@ -100,7 +100,14 @@ void wxControlBase::InheritAttributes()
SetForegroundColour(GetParent()->GetForegroundColour()); SetForegroundColour(GetParent()->GetForegroundColour());
#endif // 0 #endif // 0
#ifdef __WXPM__
//
// All OS/2 ctrls use the small font
//
SetFont(*wxSMALL_FONT);
#else
SetFont(GetParent()->GetFont()); SetFont(GetParent()->GetFont());
#endif
} }
void wxControlBase::Command(wxCommandEvent& event) void wxControlBase::Command(wxCommandEvent& event)