void DIALOG_COLOR_CONFIG::OnOkClick( wxCommandEvent& event ) { bool warning = UpdateColorsSettings(); // Prompt the user if an item has the same color as the background // because this item cannot be seen: if( warning ) wxMessageBox( _("Warning:\nSome items have the same color as the background\nand they will not be seen on screen") ); m_Parent->GetCanvas()->Refresh(); EndModal( 1 ); }
void DIALOG_COLOR_CONFIG::OnApplyClick( wxCommandEvent& event ) { UpdateColorsSettings(); m_parent->GetCanvas()->Refresh(); }