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

TScrollingWinControl.UpdateScrollbars

Initializes or updates the scroll bars for the control.

Declaration

Source position: forms.pp line 207

public procedure TScrollingWinControl.UpdateScrollbars;

Description

UpdateScrollbars is a method used to update the scroll bars used on the windowed control.

When automatic scrollbars are enabled using AutoScroll, the scroll bar information is initialized as needed for the visible scroll bars. The UpdateScrollBar method in both VertScrollBar and HorzScrollBar is called to recalculate the current page and range for the scroll bars.

No actions are performed in the method if a handle has not been allocated for the control, or when either HorzScrollBar or VertScrollBar has not been assigned.

Recursive calls to the method are ignored.

See also

TScrollingWinControl.AutoScroll

  

Indicates whether scroll bars are automatically displayed or hidden when needed.

TScrollingWinControl.ComputeScrollbars

  

Updates Page, AutoRange, IsScrollBarVisible, and returns True when changed.

TControlScrollBar.UpdateScrollBar

  

Updates the state and position for the scroll bar in the associated Control.


Version 3.2 Generated 2024-02-25 Home