position
用TProgressBar 比较合适!
ScrollBar 调节量的获得方法:
var OldPosition:integer;//全局变量
procedure TForm1.FormCreate(Sender: TObject);
begin
OldPosition:=ScrollBar1.Position ;
end;
procedure TForm1.ScrollBar1Scroll(Sender: TObject; ScrollCode: TScrollCode;
var ScrollPos: Integer);
var
n:integer;
begin
if scEndScroll<>ScrollCode then exit;
n:=ScrollBar1.Position-OldPosition; //你要的调节量
Label1.Caption:=Format('Old:%d;New%d;Moved:%d',[OldPosition,ScrollBar1.Position,n]);
OldPosition:=ScrollBar1.Position ;
end;