The value wraps at the minimum and maximum.
@endStyleTable
- @beginEventTable{wxSpinEvent}
+ @beginEventEmissionTable{wxSpinEvent}
@event{EVT_SPIN(id, func)}
Generated whenever an arrow is pressed.
@event{EVT_SPIN_UP(id, func)}
@library{wxcore}
@category{ctrl}
- <!-- @appearance{spinbutton.png} -->
+ @appearance{spinbutton.png}
@see wxSpinCtrl
*/
@see Create()
*/
- wxSpinButton(wxWindow* parent, wxWindowID id,
+ wxSpinButton(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_HORIZONTAL,
+ long style = wxSP_VERTICAL,
const wxString& name = "spinButton");
/**
Scrollbar creation function called by the spin button constructor.
See wxSpinButton() for details.
*/
- bool Create(wxWindow* parent, wxWindowID id,
+ bool Create(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_HORIZONTAL,
- const wxString& name = "spinButton");
+ long style = wxSP_VERTICAL,
+ const wxString& name = "wxSpinButton");
/**
Returns the maximum permissible value.