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

TSharedIcon.UpdateFromHandle

Frees the existing icon image and reloads it from the specified handle.

Declaration

Source position: graphics.pp line 1519

protected procedure TSharedIcon.UpdateFromHandle(

  NewHandle: THandle

); virtual;

Description

Calls FreeHandle to free the existing handle for the Icon in the widgetset class, and sets the Handle to the value specified in NewHandle. Gets icon information from the widgetset class and adds a new icon image to the list of Images.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.