m_spin = spin;
// remove the default minsize, the spinctrl will have one instead
- SetSizeHints(-1,-1);
+ SetMinSize(wxDefaultSize);
}
bool ProcessEvent(wxEvent &event)
//SetWindowVariant(wxWINDOW_VARIANT_SMALL);
// remove the default minsize, the spinctrl will have one instead
- SetSizeHints(-1,-1);
+ SetMinSize(wxDefaultSize);
}
protected:
{
m_text = NULL;
m_btn = NULL;
- m_container.SetContainerWindow(this);
+ WX_INIT_CONTROL_CONTAINER();
}
bool wxSpinCtrl::Create(wxWindow *parent,
//SetSize(csize);
//MacPostControlCreate(pos, csize);
- SetInitialBestSize(csize);
+ SetInitialSize(csize);
return true;
}