// All validators share a common (static) flag that controls
// whether they beep on error. Here we turn it off:
- wxValidator::SetBellOnError(m_silent);
+ wxValidator::SuppressBellOnError(m_silent);
file_menu->Check(VALIDATE_TOGGLE_BELL, !wxValidator::IsSilent());
#if wxUSE_STATUSBAR
void MyFrame::OnToggleBell(wxCommandEvent& event)
{
m_silent = !m_silent;
- wxValidator::SetBellOnError(m_silent);
+ wxValidator::SuppressBellOnError(m_silent);
event.Skip();
}