Sign in Join
FPDoc Onlineexperiment

TSizeConstraints class

In unit Controls

Holds minimum and maximum values for the width or height of a control.

Declaration

pascal
TSizeConstraints = class(TPersistent)

Inheritance

  1. TSizeConstraints
  2. TPersistent
  3. TObject

Description

TSizeConstraints is a TPersistent descendant which contains size constraints used to control the minimum or maximum width or height for an associated control. TSizeConstraints is the type used to implement the Constraints property in TControl and descendent classes.

The initial values for properties are retrieved from the widgetset class instance for the Control when its handle has been allocated. Values in TSizeConstraints properties are used when the Control is resized or its layout is adjusted, and prevent the control from being resized to Width or Height values that are in excess of the specified minimum or maximum values. If properties are modified in TSizeConstraints, the associated control is updated to apply the new size constraints (when needed).

See also

Properties

MaxInterfaceHeightpublicThe maximum height allowed by the widget.
MaxInterfaceWidthpublicThe maximum width allowed by the widget.
MinInterfaceHeightpublicThe minimum height allowed by the widget.
MinInterfaceWidthpublicThe minimum width allowed by the widget.
ControlpublicThe associated Control to which these constraints apply.
OptionspublicOptions used to determine the size constraints.
MaxHeightpublishedThe maximum height for the associated Control.
MaxWidthpublishedThe maximum width for the associated Control.
MinHeightpublishedThe minimum height for the associated Control.
MinWidthpublishedThe minimum width for the associated Control.

Methods

ChangeprotectedAdjusts the size for the associated Control, and signals the OnChange handler when assigned.
AssignToprotectedCopies property values to the specified persistent object.
SetMaxHeightprotectedSets the value for the MaxHeight property.
SetMaxWidthprotectedSets the value for the MaxWidth property.
SetMinHeightprotectedSets the value for the MinHeight property.
SetMinWidthprotectedSets the value for the MinWidth property.
CreatepublicConstructor for the class instance.
UpdateInterfaceConstraintspublicApplies size constraints from the specified Control to the widgetset class instance.
SetInterfaceConstraintspublicUsed by the LCL interface to set the widgetset constraints in the class instance.
EffectiveMinWidthpublicDetermines the minimum applicable width given the local and interface constraints.
EffectiveMinHeightpublicDetermines the minimum applicable height given the local and interface constraints.
EffectiveMaxWidthpublicDetermines the maximum applicable width given the local and interface constraints.
EffectiveMaxHeightpublicDetermines the maximum applicable height given the local and interface constraints.
MinMaxWidthpublicDetermines the constrained Width and transfers it to the widget.
MinMaxHeightpublicDetermines the constrained Height and transfers it to the widget.
AutoAdjustLayoutpublicAdjusts width and height values in the class using the specified scaling factors.

Events

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

Inherited

From TPersistent (8)

Assign DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.