void wxSpinButton::SetValue(int val)
{
m_value = val ;
- wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId);
-
- event.SetPosition(m_value);
- event.SetEventObject( this );
- GetEventHandler()->ProcessEvent(event);
}
void wxSpinButton::SetRange(int minVal, int maxVal)
wxSize wxSpinButton::DoGetBestSize() const
{
- if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
+ if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
{
// vertical control
return wxSize(16,