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

# TCustomEdit.Create

Constructor for the class instance.

## Declaration

Source position: stdctrls.pp line 842

`public constructor TCustomEdit.Create(`
`AOwner: TComponent`
`); override;`

## Arguments

`AOwner` |  | Owner of the class instance.

## Description

Create is an overridden constructor in TCustomEdit, and calls the inherited constructor on entry. Create ensures that component and control styles are set to the values needed for the edit control; csEdit in component style, csRequiresKeyboardInput is included in ControlStyle. Please note that these values may be changed in descendent classes; i. e. TCustomMemo uses csMemo instead of csEdit in the component style.

The default values for properties are assigned, including:

- MaxLength
- HideSelection
- ParentColor
- TabStop
- EchoMode
- BorderStyle
- AutoSelect
- AutoSelected
- AutoSize
- AccessibleRole
- TextHint

## See also

TCustomEdit.AutoSelect |  | Enables auto-selection of text when focused.
TCustomEdit.AutoSelected |  | Set to True when the text selection was made automatically.
TCustomEdit.AutoSize |  | Allows automatic adjustment of the size for the control, according to its content.
TCustomEdit.BorderStyle |  | Indicates the line style drawn as a border around the control.
TCustomEdit.Destroy |  | Destructor for the class instance.
TCustomEdit.EchoMode |  | Allows to modify the text display, useful for entering passwords.
TCustomEdit.HideSelection |  | Determines if selected text to be hidden when the control does not have focus.
TCustomEdit.MaxLength |  | The maximum length of the value entered in Text, or 0 (zero) for unlimited length.
TCustomEdit.ParentColor |  | Uses the Color from the Parent control, when enabled.
TCustomEdit.TabStop |  | Enables keyboard navigation using the Tab or Shift+Tab keys.
TCustomMemo |  | The base class for multi-line text controls.
TCustomLabeledEdit |  | Defines an edit control with a label bound to the control.
TCustomMaskEdit |  | The base class for TMaskEdit.
TCustomFloatSpinEdit |  | The base class for a spin edit control using a floating point value.
TControl.AccessibleRole |  | The accessibility role for the control which classifies what kind of object in the class instance.
TControl.ControlStyle |  | Contains style flags which control the features or behaviors enabled for the control.
TWinControl.Create |  | Constructor for the class instance.