From e736b21a8c9295b42a528d76863559a4265dab02 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 Apr 2004 11:05:50 +0000 Subject: [PATCH] give the panel 3D grey colour by default: as it's not a native control, we must give it a colour explicitly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/panelg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 81e5700262..f29cf4019b 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -121,7 +121,12 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id, long style, const wxString& name) { - return wxWindow::Create(parent, id, pos, size, style, name); + if ( !wxWindow::Create(parent, id, pos, size, style, name) ) + return false; + + SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); + + return true; } wxPanel::~wxPanel() -- 2.47.2