X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..2a8312bced9d3f3415383a79a15cad2acf447b7e:/interface/wx/spinctrl.h diff --git a/interface/wx/spinctrl.h b/interface/wx/spinctrl.h index c89b26f2fd..1ad48949a3 100644 --- a/interface/wx/spinctrl.h +++ b/interface/wx/spinctrl.h @@ -14,16 +14,21 @@ @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 { @@ -67,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. @@ -79,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. @@ -113,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.