// Responds to colour changes, and passes event on to children. void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event) { SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); Refresh(); event.Skip(); }
void wxDialogBase::OnSysColourChanged(wxSysColourChangedEvent& event) { #ifndef __WXGTK__ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); Refresh(); #endif event.Skip(); }
// Responds to colour changes, and passes event on to children. void wxMDIParentFrame::OnSysColourChanged(wxSysColourChangedEvent& event) { if ( m_clientWindow ) { m_clientWindow->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); m_clientWindow->Refresh(); } event.Skip(); }
void wxBitmapButton::OnSysColourChanged(wxSysColourChangedEvent& event) { m_brushDisabled = wxNullBrush; if ( !IsEnabled() ) { // this change affects our current state Refresh(); } event.Skip(); }
void SpectraDocumentFrame::OnSysColorChange(wxSysColourChangedEvent& event) { try { HandleSysColorChange(); Update(); event.Skip(); } catch(oglplus::MissingFunction& mfe) { parent_app.HandleError(mfe, this); } catch(oglplus::ProgramBuildError& pbe) { parent_app.HandleError(pbe, this); } catch(oglplus::LimitError& le) { parent_app.HandleError(le, this); } catch(oglplus::Error& err) { parent_app.HandleError(err, this); } catch(const std::exception& se) { parent_app.HandleError(se, this); } }
// Responds to colour changes: passes event on to children. void wxWindowX11::OnSysColourChanged(wxSysColourChangedEvent& event) { wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); while ( node ) { // Only propagate to non-top-level windows wxWindow *win = node->GetData(); if ( win->GetParent() ) { wxSysColourChangedEvent event2; event.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event2); } node = node->GetNext(); } }
void ControlColorPreview::OnSysColor(wxSysColourChangedEvent& evt) { evt.Skip(true); }