procedure ScrollBy(const Dx, Dy: Single);
void __fastcall ScrollBy(const float Dx, const float Dy);
Scrolls the view according to the given
Dy offsets (relative to the current position) in the TScrollBox control.
Dy parameters specify offsets to the values of the horizontal and vertical scroll bars assigned to the TScrollBox control. This means that the
Dx parameter is the change in pixels horizontally (along the X axis), and the
Dy parameter is the change in pixels vertically (along the Y axis).
ScrollBy has the effect of scrolling the view, in the TScrollBox control, to the new coordinates defined by the new values of the horizontal and vertical scroll bars. These new values are obtained from the current values of the vertical and horizontal scroll bars by decreasing them by
Dy pixels, respectively. For example, if
Dx is a negative value, ScrollBy scrolls the view to the left; if
Dx is a positive value, ScrollBy scrolls the view to the right.
ScrollBy only has an effect if the scroll box actually has content beyond the display area, and the scroll bars are needed to view more of the content.
- FMX.KeyboardTypes Sample