Sign in Join
FPDoc Onlineexperiment

TCustomTrayIcon.Create constructor

Member of TCustomTrayIconpublicIn unit ExtCtrls

Constructor for the class instance.

Declaration

pascal
constructor 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

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