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
This commit is contained in:
@@ -121,7 +121,12 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
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()
|
wxPanel::~wxPanel()
|
||||||
|
Reference in New Issue
Block a user