git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59410
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Added also wxEventLoopBase::IsYielding to help cure re-entrancy problems with Yield().
- Render <th> element contents in bold in wxHTML.
- Added wxGrid::{Set,Get}{Row,Col}Sizes() methods (Andrey Putrin).
+- Add support for wxSP_WRAP in the generic version of wxSpinCtrlDouble.
wxGTK:
double value = m_value + step*m_increment;
- // we can always reach the ends using the spinbutton
- if (value < m_min) value = m_min;
- if (value > m_max) value = m_max;
+ // Check for over/underflow wrapping around if necessary
+ if (value < m_min)
+ value = HasFlag(wxSP_WRAP) ? m_max : m_min;
+ if (value > m_max)
+ value = HasFlag(wxSP_WRAP) ? m_min : m_max;
// Ignore the edges when it wraps since the up/down event may be opposite
// They are in GTK and Mac