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

TSizeConstraints

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Holds maximum and minimum values that can be used in sizing objects.

Declaration

Source position: controls.pp line 596

type TSizeConstraints = class(TPersistent) end;

protected

  procedure Change; virtual;

  

Calls an OnChange handler if assigned.

  procedure AssignTo(); override;

  procedure SetMaxHeight(); virtual;

  procedure SetMaxWidth(); virtual;

  procedure SetMinHeight(); virtual;

  procedure SetMinWidth(); virtual;

public

  constructor Create(); virtual;

  procedure UpdateInterfaceConstraints; virtual;

  

Asks the interface for constraints.

  procedure SetInterfaceConstraints(); virtual;

  

Used by the interface to set the interface constraints.

  function EffectiveMinWidth; virtual;

  

Determines the minimal applicable width, given the local and interface constraints.

  function EffectiveMinHeight; virtual;

  

Determines the minimal applicable height, given the local and interface constraints.

  function EffectiveMaxWidth; virtual;

  

Determines the maximum applicable width, given the local and interface constraints.

  function EffectiveMaxHeight; virtual;

  

Determines the maximum applicable height, given the local and interface constraints.

  function MinMaxWidth();

  

Determines the constrained Width, and transfers it to the widget.

  function MinMaxHeight();

  

Determines the constrained Height, and transfers it to the widget.

  procedure AutoAdjustLayout();

  property MaxInterfaceHeight: Integer; [r]

  

The maximum height allowed by the widget.

  property MaxInterfaceWidth: Integer; [r]

  

The maximum width allowed by the widget.

  property MinInterfaceHeight: Integer; [r]

  

The minimum height allowed by the widget.

  property MinInterfaceWidth: Integer; [r]

  

The minimum width allowed by the widget.

  property Control: TControl; [r]

  

The Control to which these constraints apply.

  property Options: TSizeConstraintsOptions; [rw]

  

Options for the determination of the constraints.

published

  property OnChange: TNotifyEvent; [rw]

  

Event handler for a change in the constraints.

  property MaxHeight: TConstraintSize; [rw]

  

The maximum height.

  property MaxWidth: TConstraintSize; [rw]

  

The maximum width.

  property MinHeight: TConstraintSize; [rw]

  

The minimum height.

  property MinWidth: TConstraintSize; [rw]

  

The minimum width.

Inheritance

TSizeConstraints

  

Holds maximum and minimum values that can be used in sizing objects.

|

TPersistent

?

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.