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}}
|
\func{bool}{ScrollList}{\param{int }{dx}, \param{int }{dy}}
|
||||||
|
|
||||||
Scrolls the list control. If in icon, small icon or report view mode,
|
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
|
{\it dx} specifies the number of pixels to scroll. If in list view mode,
|
||||||
specifies the number of columns to scroll.
|
{\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
|
{\bf NB:} This method is currently only implemented in the Windows version.
|
||||||
to scroll. If in report view mode, dy specifies the number of lines to scroll.
|
|
||||||
|
|
||||||
\membersection{wxListCtrl::SetBackgroundColour}\label{wxlistctrlsetbackgroundcolour}
|
\membersection{wxListCtrl::SetBackgroundColour}\label{wxlistctrlsetbackgroundcolour}
|
||||||
|
|
||||||
|
@@ -1528,14 +1528,18 @@ long wxListCtrl::InsertColumn(long col,
|
|||||||
return InsertColumn(col, item);
|
return InsertColumn(col, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scrolls the list control. If in icon, small icon or report view mode,
|
// scroll the control by the given number of pixels (exception: in list view,
|
||||||
// x specifies the number of pixels to scroll. If in list view mode, x
|
// dx is interpreted as number of columns)
|
||||||
// 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.
|
|
||||||
bool wxListCtrl::ScrollList(int dx, int dy)
|
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.
|
// Sort items.
|
||||||
|
Reference in New Issue
Block a user