Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomLabeledEdit

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

Defines an edit control with a label bound to the control.

Declaration

Source position: extctrls.pp line 969

type TCustomLabeledEdit = class(TCustomEdit)

protected

  class procedure WSRegisterClass; override;

  

  procedure SetParent(); override;

  

Sets the value for the Parent property.

  procedure SetName(); override;

  

Sets the value for the Name property and the Caption in the label.

  procedure Loaded; override;

  

Performs actions needed when the component has finished loading in the LCL streaming mechanism.

  procedure DoPositionLabel; virtual;

  

DoPositionLabel - perform the code for positioning the label.

  procedure Notification(); override;

  

Handles a notification when a component is added to or removed from the control.

  procedure CMBiDiModeChanged(); message;

  

Handles the CM_BIDIMODECHANGED control message for the control.

  procedure CMVisibleChanged(); message;

  

Handles Focus changes, and forces UpdateControlState.

  procedure CMEnabledChanged(); message;

  

Handler for changed Enabled message; notifies the widgetset.

  procedure CreateInternalLabel; virtual;

  

CreateInternalLabel - method for internally creating label.

public

  constructor Create(); override;

  

Create - constructor for TCustomLabeledEdit: calls inherited Create then sets initial position and label spacing.

  property EditLabel: TBoundLabel; [r]

  

EditLabel - the label attached to the edit box.

  property LabelPosition: TLabelPosition; [rw]

  

LabelPosition - whether above, below, to the left or to the right of the Edit box.

  property LabelSpacing: Integer; [rw]

  

LabelSpacing - the distance between the Label and the Edit box.

end;

Inheritance

TCustomLabeledEdit

  

Defines an edit control with a label bound to the control.

|

TCustomEdit

  

The base class for controls presenting editable text.

|

TWinControl

  

Implements a windowed control which can contain other child controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

|

TObject

Description

TCustomLabeledEdit is a TCustomEdit descendant which defines an edit control with a label bound to the control. TCustomLabeledEdit is the base type for TLabeledEdit.

Note particularly the EditLabel property (see TBoundLabel), which contains the label attached to the Edit control.

Use LabelPosition to specify the location where EditLabel is displayed relative to the edit box in the control. Use LabelSpacing to set the spacing between EditLabel and the edit control.

See also

TCustomLabeledEdit.EditLabel

  

EditLabel - the label attached to the edit box.

TCustomLabeledEdit.LabelPosition

  

LabelPosition - whether above, below, to the left or to the right of the Edit box.

TCustomLabeledEdit.LabelSpacing

  

LabelSpacing - the distance between the Label and the Edit box.

TBoundLabel

  

Implements a label bound to another control.

TLabelPosition

  

TLabelPosition is an enumerated type with values that represent the position of a label relative to an associated control: i. e. above, below, left, or right.

TCustomEdit

  

The base class for controls presenting editable text.

TCustomLabel

  

Control used to show static text optionally using multiple lines.



CT Web help

CodeTyphon Studio