Sign in Join
FPDoc Onlineexperiment

TCustomIcon.HandleNeeded procedure

Member of TCustomIconprotectedIn unit Graphics

Ensures that a handle for the image has been allocated.

Declaration

pascal
procedure HandleNeeded; override

Description

HandleNeeded is an overridden procedure used to ensure that a handle for the image has been allocated. HandleNeeded re-implements the method defined in the ancestor class.

No actions are performed in the method when a valid valid has already been assigned to the shared image in the class instance.

HandleNeeded calls the CreateIconIndirect routine for the widgetset to get the value used as the Handle for the shared image.

See also

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