don't inherit the controls colours from the parent - at least for the background colour this is not the right thing to do

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-20 00:21:26 +00:00
parent 5b2f31eb30
commit 92b0a2a13c
2 changed files with 9 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ bool wxStaticBox::Create(wxWindow *parent,
WS_EX_TRANSPARENT) )
return FALSE;
// to be transparent we should have the same colour as the parent as well
SetBackgroundColour(GetParent()->GetBackgroundColour());
return TRUE;
}