const wxPoint& WXUNUSED(pos),
const wxSize& WXUNUSED(size),
long style,
-#if wxUSE_VALIDATORS
const wxValidator& validator,
-#endif
const wxString& name)
{
// m_isWindow is set to TRUE in wxWindowBase::Init() as well as many other
SetName(name);
SetWindowStyleFlag(style);
SetParent(parent);
+
+#if wxUSE_VALIDATORS
SetValidator(validator);
+#endif // wxUSE_VALIDATORS
return TRUE;
}