Sign in Join
FPDoc Onlineexperiment

TCustomListView.Create constructor

Member of TCustomListViewpublicIn unit ComCtrls

Constructor for the class instance.

Declaration

pascal
constructor Create(AOwner: TComponent); override

Arguments

AOwner

Owner of the class instance.

Description

Create is the overridden constructor for TCustomListView. It calls the inherited Create method, and allocates resources needed for the class instance. CreateListColumns is called to initialize the Columns property. CreateListItems is called to initialize the Items property.

Create sets the default values for properties and control style flags. Properties and their default values include:

  • AutoSort (True)
  • AutoWidthLastColumn (False)
  • SortType (stNone)
  • SortColumn (-1 for no sort order)
  • SortDirection (sdAscending)
  • BorderStyle (bsSingle)
  • ScrollBars (ssBoth)
  • ViewStyle (vsList)
  • TabStop (True)
  • ParentColor (False)
  • Color (clDefault if UseCLDefault has been defined, otherwise clWindow)
  • Canvas (set to a TControlCanvas instance)

It creates TChangeLink instances for the image lists in SmallImages, LargeImages, and StateImages. The change links are configured to use the ImageChange and ImageResolutionHandleDestroyed methods in their event handlers. It also creates the TCustomListViewEditor instance used to edit values in the list view control.

See also

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