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

TIcon

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension

Declaration

Source position: graphics.pp line 1607

type TIcon = class(TCustomIcon)

protected

  function GetTypeID; override;

  

GetTypeID - returns Identifier for type of Icon

  procedure HandleNeeded; override;

  

HandleNeeded - method to signal that a handle is required

public

  function ReleaseHandle;

  

ReleaseHandle - frees the handle that was iused for the Icon

  property Handle: HICON; [rw]

  

The Operating System Handle used for the Icon

end;

Inheritance

TIcon

  

TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension

|

TCustomIcon

  

TCustomIcon - base class for TIcon

|

TRasterImage

  

TRasterImage - base class for a number of graphic controls, including TCustomBitmap and TCustomIcon, which use a raster of dots to display graphic information

|

TGraphic

  

TGraphic - Base class for dealing with Graphic images

|

TPersistent

?

TObject

Description

TIcon reads and writes .ICO file format.

A .ico file typically contains several versions of the same image.

When loading, the largest/most colourful image is loaded as the TBitmap and so can be handled as any other bitmap. Any other versions of the images are available via the Bitmaps property

Writing is not (yet) implemented.