Sign in Join
FPDoc Onlineexperiment

TCustomIcon.Clear procedure

Member of TCustomIconpublicIn unit Graphics

Removes the image content for the icon.

Declaration

pascal
procedure Clear; override

Description

Clear is an overridden method used to remove the image content for the icon. Clear frees the internal save stream for the image. The internal shared image is also freed and re-created. The value in Current is set to -1 to indicate that an icon image has not been selected.

Clear calls the Changed method to set the value in Modified and signal the OnChange event handler (when assigned).

No actions are performed in the method when Empty returns True.

Clear does not call the method inherited from TRasterImage.

See also

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