@beginStyleTable
@style{wxSP_ARROW_KEYS}
- The user can use arrow keys to change the value.
+ The user can use arrow keys to change the value.
@style{wxSP_WRAP}
- The value wraps at the minimum and maximum.
+ The value wraps at the minimum and maximum.
+ @style{wxTE_PROCESS_ENTER}
+ Indicates that the control should generate wxEVT_COMMAND_TEXT_ENTER
+ events. Using this style will prevent the user from using the Enter key
+ for dialog navigation (e.g. activating the default button in the
+ dialog) under MSW.
@endStyleTable
@library{wxcore}
@category{ctrl}
<!-- @appearance{spinctrl.png} -->
- @see wxSpinButton, wxControl
+ @see wxSpinButton, wxSpinCtrlDouble, wxControl
*/
class wxSpinCtrl : public wxControl
{
const wxSize& size = wxDefaultSize,
long style = wxSP_ARROW_KEYS,
int min = 0, int max = 100,
- int initial = 0);
+ int initial = 0, const wxString& name = _T("wxSpinCtrl"));
/**
Creation function called by the spin control constructor.
const wxSize& size = wxDefaultSize,
long style = wxSP_ARROW_KEYS,
int min = 0, int max = 100,
- int initial = 0);
+ int initial = 0, const wxString& name = _T("wxSpinCtrl"));
/**
Gets maximal allowable value.