[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Holds maximum and minimum values that can be used in sizing objects.
Source position: controls.pp line 542
type TSizeConstraints = class(TPersistent) |
||
protected |
||
procedure Change; virtual; |
|
Method for achieving a Change in the constraints |
procedure AssignTo(); override; |
|
AssignTo - copies constraints to destination if it is of the same type and has different values, else calls inherited AssignTo |
procedure SetMaxHeight(); virtual; |
|
SetMaxHeight - specifies a maximum value for height |
procedure SetMaxWidth(); virtual; |
|
SetMaxWidth - specifies a maximum value for width |
procedure SetMinHeight(); virtual; |
|
SetMinHeight - specifies a minimum value for height |
procedure SetMinWidth(); virtual; |
|
SetMinWidth - specifies a minimum value for width |
public |
||
constructor Create(); virtual; |
|
Create - constructor for TSizeConstraints: calls inherited Create and sets some default (zero) constraints |
procedure UpdateInterfaceConstraints; virtual; |
|
UpdateInterfaceConstraints - updates the constraints on size for the Interface |
procedure SetInterfaceConstraints(); virtual; |
|
SetInterfaceConstraints - specifies the constraints for the interface |
function EffectiveMinWidth; virtual; |
|
EffectiveMinWidth - returns the effective value for minimum width, given the local and interface constraints |
function EffectiveMinHeight; virtual; |
|
EffectiveMinHeight - returns the effective value for minimum height, given the local and interface constraints |
function EffectiveMaxWidth; virtual; |
|
EffectiveMaxWidth - returns the effective value for maximum width, given the local and interface constraints |
function EffectiveMaxHeight; virtual; |
|
EffectiveMaxHeight - returns the effective value for maximum height, given the local and interface constraints |
function MinMaxWidth(); |
|
MinMaxWidth the difference between Minimum and Maximum width |
function MinMaxHeight(); |
|
MinMaxHeight the difference between Minimum and Maximum height |
property MaxInterfaceHeight: Integer; [r] |
|
MaxInterfaceHeight - the maximum height allowed by the interace |
property MaxInterfaceWidth: Integer; [r] |
|
MaxInterfaceWidth - the maximum width allowed by the interace |
property MinInterfaceHeight: Integer; [r] |
|
MinInterfaceHeight - the minimum height allowed by the interface |
property MinInterfaceWidth: Integer; [r] |
|
MinInterfaceWidth - the minimum width allowed by the interface |
|
The Control to which these constraints apply |
|
property Options: TSizeConstraintsOptions; [rw] |
|
Options for determining constraints |
published |
||
property OnChange: TNotifyEvent; [rw] |
|
OnChange - event handler for a change in contraints |
property MaxHeight: TConstraintSize; [rw] |
|
MaxHeight - the maximum height |
property MaxWidth: TConstraintSize; [rw] |
|
MaxWidth - the maximum width |
property MinHeight: TConstraintSize; [rw] |
|
MinHeight - the minimum height |
property MinWidth: TConstraintSize; [rw] |
|
MinWidth - the minimum width |
end; |
|
Holds maximum and minimum values that can be used in sizing objects. |
|
| | ||
| | ||
lazarus-ccr.sourceforge.net |