git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33544
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
y = wxMax( h - 1, 0 );
// do set scrollbar parameters
y = wxMax( h - 1, 0 );
// do set scrollbar parameters
- SetScrollbars( GRID_SCROLL_LINE_X, GRID_SCROLL_LINE_Y,
+ SetScrollbars( m_scrollLineX, m_scrollLineY,
GetScrollX(w), GetScrollY(h), x, y,
GetBatchCount() != 0);
GetScrollX(w), GetScrollY(h), x, y,
GetBatchCount() != 0);
//
// Sometimes GRID_SCROLL_LINE/2 is not enough, so just add a full
// scroll unit...
//
// Sometimes GRID_SCROLL_LINE/2 is not enough, so just add a full
// scroll unit...
- ypos += GRID_SCROLL_LINE_Y;
xpos = x0 + (right - cw);
// see comment for ypos above
xpos = x0 + (right - cw);
// see comment for ypos above
- xpos += GRID_SCROLL_LINE_X;
}
if ( xpos != -1 || ypos != -1 )
{
if ( xpos != -1 )
}
if ( xpos != -1 || ypos != -1 )
{
if ( xpos != -1 )
- xpos /= GRID_SCROLL_LINE_X;
- ypos /= GRID_SCROLL_LINE_Y;
Scroll( xpos, ypos );
AdjustScrollbars();
}
Scroll( xpos, ypos );
AdjustScrollbars();
}
// won't get the scrollbars if we're sized exactly to this width
// CalcDimension adds m_extraWidth + 1 etc. to calculate the necessary
// scrollbar steps
// won't get the scrollbars if we're sized exactly to this width
// CalcDimension adds m_extraWidth + 1 etc. to calculate the necessary
// scrollbar steps
- wxSize sizeFit(GetScrollX(size.x + m_extraWidth + 1) * GRID_SCROLL_LINE_X,
- GetScrollY(size.y + m_extraHeight + 1) * GRID_SCROLL_LINE_Y);
+ wxSize sizeFit(GetScrollX(size.x + m_extraWidth + 1) * m_scrollLineX,
+ GetScrollY(size.y + m_extraHeight + 1) * m_scrollLineY);
// distribute the extra space between the columns/rows to avoid having
// extra white space
// distribute the extra space between the columns/rows to avoid having
// extra white space