- PreCreation( parent, id, pos, new_size, style, name );
-
-// SetValidator( validator );
+ if (!PreCreation( parent, pos, new_size ) ||
+ !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
+ {
+ wxFAIL_MSG( _T("wxXX creation failed") );
+ return FALSE;
+ }