don't propagate our (non default) background to children: use SetOwnBgCol() instead of SetBgCol()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -187,7 +187,7 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
|
if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
|
SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
|
||||||
|
|
||||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||||
SetLeftMenu(wxID_EXIT, _("Done"));
|
SetLeftMenu(wxID_EXIT, _("Done"));
|
||||||
@@ -415,7 +415,7 @@ void wxFrame::InternalSetMenuBar()
|
|||||||
// Responds to colour changes, and passes event on to children.
|
// Responds to colour changes, and passes event on to children.
|
||||||
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
|
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
|
||||||
{
|
{
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
|
SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
|
Reference in New Issue
Block a user