Sign in Join
FPDoc Onlineexperiment

TBoundLabel.Create constructor

Member of TBoundLabelpublicIn unit ExtCtrls

Constructor for the class instance.

Declaration

pascal
constructor Create(TheOwner: TComponent); override

Arguments

TheOwner

Owner for the class instance.

Description

Create is the constructor for TBoundLabel. It calls the inherited Create method, and makes itself a SubComponent of the Owner. The default values for the following properties are set:

Alignment
Set to taLeftJustify to align text to the left in the label.
Layout
Set to tlCenter to center the text vertically on the label. The top of the label is determined using the height for the control to which it is bound.

The Caption for the label is changed to the value from the Name property in the Owner control.

Modified in LCL version 4.0 to set default values for the Alignment and Layout properties.

See also

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