Override InheritAttributes() to do nothing in wxNonOwnedWindow.
Non owner windows shouldn't inherit attributes from their parent. This wasn't a problem in wxMSW where InheritAttributes() was never called for them but was in wxGTK (and possibly other ports) where dialogs inherited font from their parent. Closes #2766. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,6 +69,13 @@ public:
|
|||||||
// client area origin so simply do nothing here.
|
// client area origin so simply do nothing here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void InheritAttributes()
|
||||||
|
{
|
||||||
|
// Non owned windows don't inherit attributes from their parent window
|
||||||
|
// (if the parent frame is red, it doesn't mean that all dialogs shown
|
||||||
|
// by it should be red as well), so don't do anything here neither.
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool DoClearShape()
|
virtual bool DoClearShape()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user