Added SetScrollLinesX, SetScrollLinesY so apps can work around scrollbar

appearance problems by setting the scroll increment to e.g. 1
(Scrollbar problems caused by rounding errors - see comments in grid.cpp).
Also removed obsolete functions from reference, rearranged alphabetically


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-10-14 10:28:20 +00:00
parent 387d96cc8f
commit 608754c4a3
3 changed files with 243 additions and 368 deletions

View File

@@ -413,6 +413,7 @@ static const size_t GRID_SCROLL_LINE_Y = GRID_SCROLL_LINE_X;
// in these hash tables is the number of rows/columns)
static const int GRID_HASH_SIZE = 100;
#if 0
// ----------------------------------------------------------------------------
// private functions
// ----------------------------------------------------------------------------
@@ -426,6 +427,7 @@ static inline int GetScrollY(int y)
{
return (y + GRID_SCROLL_LINE_Y - 1) / GRID_SCROLL_LINE_Y;
}
#endif
// ============================================================================
// implementation
@@ -4171,6 +4173,9 @@ void wxGrid::Init()
m_extraWidth =
m_extraHeight = 0;
m_scrollLineX = GRID_SCROLL_LINE_X;
m_scrollLineY = GRID_SCROLL_LINE_Y;
}
// ----------------------------------------------------------------------------