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

TCustomIcon.PaletteAllocated

Determine if a handle has been allocated for the Palette in the icon.

Declaration

Source position: graphics.pp line 1672

public function TCustomIcon.PaletteAllocated: Boolean; override;

Function result

True when the Palette handle has been allocated for the icon.

Description

PaletteAllocated is an overridden method used to determine if a handle has been allocated for the Palette in the icon image. PaletteAllocated implements the abstract virtual method defined in the ancestor class.

The return value is True when Current contains a value other than -1, and the palette handle in the TIconImage instance for the shared icon image has a non-zero value.

Remark: While provided as property in TCustomIcon, Palette is never assigned in the TIconImage class instances used to represent the individual images in the icon. Effectively, Palette is not implemented for TCustomIcon and PaletteAllocated will always return False.

See also

TRasterImage.PaletteAllocated

  

PaletteAllocated - returns True if a Palette has been allocated.

TSharedIcon

  

Implements a reference-counted shared Icon image type.

TIconImage.Palette

  

Handle for the Palette.


Version 3.2 Generated 2024-02-25 Home