]> git.saurik.com Git - wxWidgets.git/commitdiff
give the panel 3D grey colour by default: as it's not a native control, we must give...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Apr 2004 11:05:50 +0000 (11:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Apr 2004 11:05:50 +0000 (11:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/panelg.cpp

index 81e5700262bb6b6ee903e651d9ceb2e2699bb0ba..f29cf4019b51c30576163d51ce91031dc4dc114e 100644 (file)
@@ -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()