dy parameter in ScrollList() is the number of pixels, not lines (closes bug 628778)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -612,11 +612,11 @@ the given {\it column} for the specified {\tt item}.
|
||||
\func{bool}{ScrollList}{\param{int }{dx}, \param{int }{dy}}
|
||||
|
||||
Scrolls the list control. If in icon, small icon or report view mode,
|
||||
dx specifies the number of pixels to scroll. If in list view mode, dx
|
||||
specifies the number of columns to scroll.
|
||||
{\it dx} specifies the number of pixels to scroll. If in list view mode,
|
||||
{\it dx} specifies the number of columns to scroll. {\it dy} always specifies
|
||||
the number of pixels to scroll vertically.
|
||||
|
||||
If in icon, small icon or list view mode, dy specifies the number of pixels
|
||||
to scroll. If in report view mode, dy specifies the number of lines to scroll.
|
||||
{\bf NB:} This method is currently only implemented in the Windows version.
|
||||
|
||||
\membersection{wxListCtrl::SetBackgroundColour}\label{wxlistctrlsetbackgroundcolour}
|
||||
|
||||
|
@@ -1528,14 +1528,18 @@ long wxListCtrl::InsertColumn(long col,
|
||||
return InsertColumn(col, item);
|
||||
}
|
||||
|
||||
// Scrolls the list control. If in icon, small icon or report view mode,
|
||||
// x specifies the number of pixels to scroll. If in list view mode, x
|
||||
// specifies the number of columns to scroll.
|
||||
// If in icon, small icon or list view mode, y specifies the number of pixels
|
||||
// to scroll. If in report view mode, y specifies the number of lines to scroll.
|
||||
// scroll the control by the given number of pixels (exception: in list view,
|
||||
// dx is interpreted as number of columns)
|
||||
bool wxListCtrl::ScrollList(int dx, int dy)
|
||||
{
|
||||
return (ListView_Scroll(GetHwnd(), dx, dy) != 0);
|
||||
if ( !ListView_Scroll(GetHwnd(), dx, dy) )
|
||||
{
|
||||
wxLogDebug(_T("ListView_Scroll(%d, %d) failed"), dx, dy);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Sort items.
|
||||
|
Reference in New Issue
Block a user