[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.Icon

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

Declaration

Source position: forms.pp line 792

public property TCustomForm.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.

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

See also

TCustomForm.BigIconHandle

  

Returns the handle for the large icon on the form or in the application.

TCustomForm.SmallIconHandle

  

Returns (and optionally creates) the Handle for the small Icon used for the form.

TIcon

  

Implements an icon image type; small images typically associated with applications, controls, etc.


Version 3.2 Generated 2024-02-25 Home