EVT_SPIN(wxID_ANY, wxSpinCtrlButton::OnSpinButton)
END_EVENT_TABLE()
-BEGIN_EVENT_TABLE(wxSpinCtrl, wxControl)
- WX_EVENT_TABLE_CONTROL_CONTAINER(wxSpinCtrl)
-END_EVENT_TABLE()
-
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxSpinCtrl, wxControl)
-
-
// ============================================================================
// implementation
// ============================================================================
{
m_text = NULL;
m_btn = NULL;
- WX_INIT_CONTROL_CONTAINER();
}
bool wxSpinCtrl::Create(wxWindow *parent,
int initial,
const wxString& name)
{
- DontCreatePeer();
-
if ( !wxControl::Create(parent, id, pos, size, style,
wxDefaultValidator, name) )
{
{
if ( !wxControl::Enable(enable) )
return false;
+ m_text->Enable(enable);
+ m_btn->Enable(enable);
return true;
}