+ if (m_textColourLabel->GetValue())
+ m_previewCtrl->SetForegroundColour(m_colourCtrl->GetColour());
+ else
+ {
+ m_previewCtrl->SetForegroundColour(*wxBLACK);
+ if (!(m_colourCtrl->GetColour() == *wxBLACK))
+ {
+ m_colourCtrl->SetColour(*wxBLACK);
+ m_colourCtrl->Refresh();
+ }
+ }
+
+ if (m_bgColourLabel->GetValue())
+ m_previewCtrl->SetBackgroundColour(m_bgColourCtrl->GetColour());
+ else
+ {
+ m_previewCtrl->SetBackgroundColour(*wxWHITE);