ImageEn, unit ieanimation |
|
TIEAnimation.MoveScrollbarSliderTo
Declaration
procedure MoveScrollbarSliderTo(X: integer);
Description
Moves the scrollbar slider to the specified horizontal position.
Parameter | Description |
X | Horizontal slider position |
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;