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:
parent
2112ca2d61
commit
e941b45e41
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user