don't inherit font from the parent by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,15 +101,6 @@ void wxControlBase::InheritAttributes()
|
|||||||
SetBackgroundColour(parent->GetBackgroundColour());
|
SetBackgroundColour(parent->GetBackgroundColour());
|
||||||
SetForegroundColour(parent->GetForegroundColour());
|
SetForegroundColour(parent->GetForegroundColour());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXPM__
|
|
||||||
//
|
|
||||||
// All OS/2 ctrls use the small font
|
|
||||||
//
|
|
||||||
SetFont(*wxSMALL_FONT);
|
|
||||||
#else
|
|
||||||
SetFont(GetParent()->GetFont());
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxControlBase::Command(wxCommandEvent& event)
|
void wxControlBase::Command(wxCommandEvent& event)
|
||||||
|
Reference in New Issue
Block a user