X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..d80170bd4d3fa22bdd3e30f2d009f3fd8e9a8b4e:/interface/wx/spinctrl.h diff --git a/interface/wx/spinctrl.h b/interface/wx/spinctrl.h index 06d29a3647..1ad48949a3 100644 --- a/interface/wx/spinctrl.h +++ b/interface/wx/spinctrl.h @@ -8,23 +8,27 @@ /** @class wxSpinCtrl - @wxheader{spinctrl.h} wxSpinCtrl combines wxTextCtrl and wxSpinButton in one control. @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} - @see wxSpinButton, wxControl + @see wxSpinButton, wxSpinCtrlDouble, wxControl */ class wxSpinCtrl : public wxControl { @@ -68,7 +72,7 @@ public: 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. @@ -80,7 +84,7 @@ public: 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. @@ -114,7 +118,7 @@ public: /** Sets the value of the spin control. Use the variant using int instead. */ - void SetValue(const wxString& text); + virtual void SetValue(const wxString& text); /** Sets the value of the spin control.