refresh widget after changing its colour

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-19 20:04:22 +00:00
parent fbb9eac06c
commit 750972abb4

View File

@ -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