- wxControl( wxWindow *parent,
- wxWindowID id,
- const wxPoint &pos = wxDefaultPosition,
- const wxSize &size = wxDefaultSize,
- long style = 0,
- const wxString &name = wxControlNameStr );
+ wxControl(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+ const wxValidator& validator = wxDefaultValidator,
+#endif
+ const wxString& name = wxControlNameStr)
+ {
+ Create(parent, id, pos, size, style,
+#if wxUSE_VALIDATORS
+ validator,
+#endif
+ name);
+ }