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
This commit is contained in:
Vadim Zeitlin 2011-10-02 12:58:48 +00:00
parent 2112ca2d61
commit e941b45e41

View File

@ -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;