====== ScrollByPath ====== Emulates scroll through the intermediate points. ===== Syntax ===== procedure ScrollByPath(aPath: TCSMovePath); ==== Parameters ==== * **//aPath//** * //type:// [[en:wascript:pascal:types:tcsmovepath|TCSMovePath]] * //functions:// array of intermediate points of scrolling ===== Notes ===== * The coordinates of the array aPath determine the amount of scrolling horizontally (X) and vertical (Y). Duration field of point specifies the time at which execution will be stopped after its passage. ===== Examples ===== -//As a result of execution the page is scrolled down 500 points down at a slower pace var path:TCSMovePath; var point:TCSMovePoint; var i:integer; for i:=0 to 50 do begin point.X:=0; point.Y:=-10; point.Duration:=i*2; path.add(point); end; ScrollByPath(path);