ImageEn, unit ieanimation

TIEAnimation.MoveScrollbarSliderTo

TIEAnimation.MoveScrollbarSliderTo


Declaration


procedure MoveScrollbarSliderTo(X: integer);


Description


Moves the scrollbar slider to the specified horizontal position.

Parameter Description
X Horizontal slider position.



Example


procedure TMainForm.ImageEnView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  // directly move to the clicked scrollbar position
  if m_animation.IsInsideScrollbar(X, Y) then
    m_animation.MoveScrollbarSliderTo(X);
end;