Sign in Join
FPDoc Onlineexperiment

TCustomForm.Icon property

Member of TCustomFormpublicIn unit Forms

The Icon associated with this Form (in minimized state).

Declaration

pascal
property Icon: TIcon read FIcon write SetIcon stored IsIconStored;

Description

Icon is a TIcon property which contains the graphical icon for the form instance. Icon contains the image displayed on the task bar area when a form is minimized. If an Icon is not explicitly assigned for the form, the icon for the Application is used.

Assigning a new value to Icon causes existing icon handles to be freed, and the widgetset class is notified to re-create the icon handles.

For the macOS Carbon widgetset, a form-level Icon is not supported.

See also

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