From 6aa18bf7c49b1d88c8b72887b744463ceaa5cedc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 12 Nov 2014 12:37:40 +0000 Subject: [PATCH] Use wxFILTER_EXCLUDE_CHAR_LIST in the sample. It makes more sense than wxFILTER_EXCLUDE_LIST with SetCharExcludes(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/validate/validate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/validate/validate.cpp b/samples/validate/validate.cpp index 5ba919f99e..159f3a6174 100644 --- a/samples/validate/validate.cpp +++ b/samples/validate/validate.cpp @@ -258,12 +258,12 @@ MyDialog::MyDialog( wxWindow *parent, const wxString& title, // Now set a wxTextValidator with an explicit list of characters NOT allowed: - wxTextValidator textVal(wxFILTER_EMPTY|wxFILTER_EXCLUDE_LIST, &g_data.m_string2); + wxTextValidator textVal(wxFILTER_EMPTY|wxFILTER_EXCLUDE_CHAR_LIST, &g_data.m_string2); textVal.SetCharExcludes("bcwyz"); wxTextCtrl* txt2 = new wxTextCtrl(this, VALIDATE_TEXT2, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, textVal); - txt2->SetToolTip("uses wxTextValidator with wxFILTER_EMPTY|wxFILTER_EXCLUDE_LIST (to exclude 'bcwyz')"); + txt2->SetToolTip("uses wxTextValidator with wxFILTER_EMPTY|wxFILTER_EXCLUDE_CHAR_LIST to exclude 'bcwyz'"); flexgridsizer->Add(txt2, 1, wxGROW); flexgridsizer->Add(new wxListBox((wxWindow*)this, VALIDATE_LIST,