return false;
}
- SetRange(min, max);
- SetValue(initial);
+ wxSpinButtonBase::SetRange(min, max);
m_oldValue = initial;
// associate the text window with the spin button
(void)::SendMessage(GetHwnd(), UDM_SETBUDDY, (WPARAM)m_hwndBuddy, 0);
+ SetValue(initial);
+
+ // Set the range in the native control
+ SetRange(min, max);
+
+ // Send the initial event
+ SendSpinUpdate(initial);
+
if ( !value.empty() )
{
SetValue(value);