xmArrowButtonWidgetClass,
parentWidget,
XmNarrowDirection, arrow_dir,
xmArrowButtonWidgetClass,
parentWidget,
XmNarrowDirection, arrow_dir,
wxPoint pt1, pt2;
wxSize sz1, sz2;
CalcSizes( wxPoint(0,0), newSize, pt1, sz1, pt2, sz2, isVert );
wxPoint pt1, pt2;
wxSize sz1, sz2;
CalcSizes( wxPoint(0,0), newSize, pt1, sz1, pt2, sz2, isVert );
- m_up = new wxArrowButton( this, -1, isVert ? wxARROW_UP : wxARROW_LEFT,
+ m_up = new wxArrowButton( this, -1, isVert ? wxARROW_UP : wxARROW_RIGHT,
void wxSpinButton::DoSetSize(int x, int y, int width, int height,
int sizeFlags)
{
void wxSpinButton::DoSetSize(int x, int y, int width, int height,
int sizeFlags)
{
if( sizeFlags & wxSIZE_USE_EXISTING && width == -1 )
width = GetSize().x;
if( sizeFlags & wxSIZE_USE_EXISTING && height == -1 )
height = GetSize().y;
if( sizeFlags & wxSIZE_USE_EXISTING && width == -1 )
width = GetSize().x;
if( sizeFlags & wxSIZE_USE_EXISTING && height == -1 )
height = GetSize().y;
wxControl::DoSetSize(x, y, width, height, 0);
}
wxControl::DoSetSize(x, y, width, height, 0);
}
if( npos == m_pos ) return;
wxSpinEvent event( delta > 0 ? wxEVT_SCROLL_LINEUP : wxEVT_SCROLL_LINEDOWN,
if( npos == m_pos ) return;
wxSpinEvent event( delta > 0 ? wxEVT_SCROLL_LINEUP : wxEVT_SCROLL_LINEDOWN,