[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.ScrollBy

Scrolls child controls by the specified number of pixels.

Declaration

Source position: controls.pp line 2396

public procedure TWinControl.ScrollBy(

  DeltaX: Integer;

  DeltaY: Integer

); virtual;

Arguments

DeltaX

  

Number of pixels scrolled in the horizontal direction.

DeltaY

  

Number of pixels scrolled in the vertical direction.

Description

ScrollBy temporarily disables auto-sizing while the child Controls are being moved, and re-enables auto-sizing prior to exiting form the method. The Left and Top bounds for each of the child Controls are updated by the amounts specified in DeltaX and DeltaY. The Height and Width values are not modified.

See also

TWinControl.Controls

  

Provides indexed access to the child controls for the class instance.

TWinControl.ControlCount

  

The number of child controls in the Controls property.

TControl.SetBounds

  

Sets the bounds (Left, Top, Width, Height) of the control.


Version 3.2 Generated 2024-02-25 Home