From: Vadim Zeitlin Date: Sun, 2 Oct 2011 12:58:48 +0000 (+0000) Subject: Use wxSP_WRAP for generic wxTimePicker spin button. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e941b45e418321f1ddea3bbb49e94019aaa4c2bf Use wxSP_WRAP for generic wxTimePicker spin button. This ensures that the spin button arrows are always enabled, as they should be, even under wxGTK where wxSpinButton disables its arrows on its own if its value reaches the end of its range and wxSP_WRAP is not used. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/timectrl.cpp b/src/generic/timectrl.cpp index 38218a6a62..af10b288f1 100644 --- a/src/generic/timectrl.cpp +++ b/src/generic/timectrl.cpp @@ -72,7 +72,9 @@ public: // this is not currently supported by wxTextCtrl. m_text->SetCursor(wxCURSOR_ARROW); - m_btn = new wxSpinButton(ctrl); + m_btn = new wxSpinButton(ctrl, wxID_ANY, + wxDefaultPosition, wxDefaultSize, + wxSP_VERTICAL | wxSP_WRAP); m_currentField = Field_Hour; m_isFirstDigit = true;