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

TSizeConstraints.Change

Adjusts the size for the associated Control, and signals the OnChange handler when assigned.

Declaration

Source position: controls.pp line 720

protected procedure TSizeConstraints.Change; virtual;

Description

Change causes the AdjustSize method to be called in the associated Control. It signals the OnChange event handler (when assigned) using the TSizeConstraints instance as the Sender argument in the notification.

Change is called when a new value is assigned to the MaxWidth, MinWidth, MaxHeight, or MinHeight properties. It is called when AssignTo is used to store property values from the class instance to another persistent object. It is also called when the AutoAdjustLayout is used to scale values in MaxWidth, MinWidth, MaxHeight, or MinHeight properties by a specified size factor.

See also

TSizeConstraints.MaxHeight

  

The maximum height for the associated Control.

TSizeConstraints.MaxWidth

  

The maximum width for the associated Control.

TSizeConstraints.MinHeight

  

The minimum height for the associated Control.

TSizeConstraints.MinWidth

  

The minimum width for the associated Control.

TSizeConstraints.Control

  

The associated Control to which these constraints apply.

TSizeConstraints.OnChange

  

Event handler signalled when a value in the class instance has been changed.

TSizeConstraints.AssignTo

  

Copies property values to the specified persistent object.

TSizeConstraints.AutoAdjustLayout

  

Adjusts width and height values in the class using the specified scaling factors.

TControl.AdjustSize

  

Smart way to DoAutoSize.


Version 4.0 Generated 2025-05-03 Home