|
发表于 2009-1-10 14:12:00
|
显示全部楼层
TWinControl.ScrollBy
Scroll control contents.
procedure ScrollBy(DeltaX, DeltaY: Integer);
Description
Call ScrollBy to scroll the contents within the control. While ScrollBy can be used for any TWinControl, it makes the most sense to use it for descendants of TScrollingWinControl.
Applications seldom need to call the ScrollBy method unless they implement their own scrolling interface rather than relying on a scroll bar.
The DeltaX parameter is the change in pixels along the X axis. A positive DeltaX value scrolls the contents to the right; a negative value scrolls the contents to the left. The DeltaY parameter is the change in pixels along the Y axis. A positive DeltaY value scrolls the contents down; a negative value scrolls the contents up.
这个方法可以移动当前显示区域内的内容。不过在Docview上使用不合适,Docview显示的是view的内容,如果要调用,应该这样:dvInfo.view.ScrollBy(0,20);
楼主想要做什么呢? |
|