TCustomListBox.Create constructor
Constructor for the class instance.
Declaration
constructor Create(TheOwner: TComponent); overrideArguments
TheOwner | Owner of the class instance. |
Description
Create is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create sets the component style to
csListBox, and allocates resources needed for the
Items and
Canvas properties. Create sets the default values for properties,
including:
- BorderStyle
- Set to bsSingle.
- ClickOnSelChange
- Set to True.
- ItemIndex
- Set to -1 to indicate no item is selected.
- ExtendedSelect
- Set to True.
- Options
- Set to DefOptions.
- Canvas
- Cast to a TControlCanvas instance for the current class instance.
- ParentColor
- Set to False.
- TabStop
- Set to True.
Create calls SetInitialBounds to assign the dimensions from the
GetControlClassDefaultSize method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
