git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3747
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !CreateBase(parent, id, pos, size, style, validator, name) )
return FALSE;
if ( !CreateBase(parent, id, pos, size, style, validator, name) )
return FALSE;
- SetValidator(validator);
+ // Validator was set in CreateBase
+ //SetValidator(validator);
parent->AddChild((wxButton *)this);
parent->AddChild((wxButton *)this);
_T("BUTTON"),
label,
WS_VISIBLE | WS_TABSTOP | WS_CHILD,
_T("BUTTON"),
label,
WS_VISIBLE | WS_TABSTOP | WS_CHILD,
GetWinHwnd(parent),
(HMENU)m_windowId,
wxGetInstance(),
GetWinHwnd(parent),
(HMENU)m_windowId,
wxGetInstance(),
if ( !CreateBase(parent, id, pos, size, style, validator, name) )
return FALSE;
if ( !CreateBase(parent, id, pos, size, style, validator, name) )
return FALSE;
- SetValidator(validator);
+ // Validator was set in CreateBase
+ //SetValidator(validator);
if ( parent )
parent->AddChild(this);
if ( parent )
parent->AddChild(this);