From: Vadim Zeitlin Date: Fri, 19 Nov 2004 20:04:22 +0000 (+0000) Subject: refresh widget after changing its colour X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/750972abb40f3d045640d75e858244677aaefb15 refresh widget after changing its colour git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 748d97c5da..e97145617e 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -407,6 +407,7 @@ void WidgetsFrame::OnSetFgCol(wxCommandEvent& WXUNUSED(event)) WidgetsPage *page = wxStaticCast(m_notebook->GetCurrentPage(), WidgetsPage); page->GetWidget()->SetForegroundColour(m_colFg); + page->GetWidget()->Refresh(); } void WidgetsFrame::OnSetBgCol(wxCommandEvent& WXUNUSED(event)) @@ -419,6 +420,7 @@ void WidgetsFrame::OnSetBgCol(wxCommandEvent& WXUNUSED(event)) WidgetsPage *page = wxStaticCast(m_notebook->GetCurrentPage(), WidgetsPage); page->GetWidget()->SetBackgroundColour(m_colBg); + page->GetWidget()->Refresh(); } #endif // wxUSE_MENUS