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

# TCustomTrayIcon.Create

Constructor for the class instance.

## Declaration

Source position: extctrls.pp line 1448

`public constructor TCustomTrayIcon.Create(`
`TheOwner: TComponent`
`); override;`

## Description

Create is the overridden constructor for the class instance, and calls the inherited constructor on entry. If AOwner is not Nil, the new component attempts to insert itself in the list of owned components in the owner class instance.

Creates sets the default values for properties in the class instance, like:

- BalloonTimeout (3000ms or 3 seconds)
- ShowIcon (True)
- BalloonFlags (bfNone)
- Visible (False)

Create allocates resources for members which implement the Icon and Icons properties, and internal TTimer instances used for animated icons and balloon hints. A TPopupNotifier instance is also created for platforms without native support for balloon hint display.

## See also

TComponent.Create