Patch [ 1118343 ] Use wxTextValidator::SetIncludes in wxDatePickerCtrlGeneric

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-08 03:16:09 +00:00
parent 8f98c6c007
commit af7bb44ca4

View File

@@ -48,6 +48,7 @@
#include "wx/dateevt.h"
#include "wx/generic/datectrl.h"
#include "wx/arrstr.h"
#include "wx/calctrl.h"
#include "wx/popupwin.h"
#include "wx/renderer.h"
@@ -392,7 +393,7 @@ bool wxDatePickerCtrlGeneric::SetFormat(const wxChar *fmt)
if (m_txt)
{
wxStringList valList;
wxArrayString valList;
wxChar c;
for (c='0'; c <= '9'; c++)
valList.Add(wxString(c, 1));
@@ -405,7 +406,7 @@ bool wxDatePickerCtrlGeneric::SetFormat(const wxChar *fmt)
valList.Add(wxString(*p++, 1));
}
wxTextValidator tv(wxFILTER_INCLUDE_CHAR_LIST);
tv.SetIncludeList(valList);
tv.SetIncludes(valList);
m_txt->SetValidator(tv);