Sign in Join
FPDoc Onlineexperiment

TCustomIcon.Current property

Member of TCustomIconpublicIn unit Graphics

Ordinal position for the current image displayed for the icon.

Declaration

pascal
property Current: Integer read FCurrent write SetCurrent;

Description

Current is an Integer property which contains the ordinal position for the selected image in the icon. Setting a new value for the property causes the UpdateCurrentView method to be called to update the Canvas, and the save stream for the shared image. The OnChange event handler is signalled (when assigned).

Set Current to -1 before calling SetSize (or changing values in Height and Width) to avoid raising an EInvalidGraphicOperation exception.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.