同意FlyFantasy的看法,你可以直接参考联机帮助中有关
ScrollBy方法的信息,如下:
ScrollBy scrolls the contents of a windowed control.
procedure ScrollBy(DeltaX, DeltaY: Integer);
Description
Call ScrollBy to scroll the contents within the control. While ScrollBy can be used for any windowed control, it makes the most sense to use it for descendents 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.