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

TWinControl.BoundsLockCount

A counter used to track updates to the BoundsRect for the control.

Declaration

Source position: controls.pp line 2335

public property TWinControl.BoundsLockCount : Integer
  read FBoundsLockCount;

Description

BoundsLockCount is a read-only Integer property with the counter used to track active updates to the BoundsRect for the control. Its value is maintained when the BeginUpdateBounds and EndUpdateBounds methods are called. Its value is incremented when BeginUpdateBounds is called, and decremented when EndUpdateBounds is called. When it has a non-zero value, updates to the BoundsRect property are blocked. When it reaches 0 (zero), the SetBounds method is called to store the values in Left, Top, Width, and Height to the bounds rectangle.

See also

TWinControl.BeginUpdateBounds

  

Starts an update to the Bounds property; disables SetBounds by incrementing BoundsLockCount.

TWinControl.EndUpdateBounds

  

Ends an update to the Bounds property; decrements BoundsLockCount and eventually calls SetBounds.

TWinControl.SetBounds

  

Sets the control bounds and adjusts child and docked controls.

TControl.BoundsRect

  

The Top, Left and Bottom, Right for the control, in client coordinates.

TControl.Left

  

The client coordinate with the left edge for the control.

TControl.Top

  

The client coordinate for the top edge of the control.

TControl.Width

  

The horizontal size for the control.

TControl.Height

  

The vertical size for the control.


Version 3.2 Generated 2024-02-25 Home