TMenuItem.UpdateWSIcon procedure
Updates the widgetset class with the values in HasIcon and Bitmap.
Declaration
procedure UpdateWSIconDescription
UpdateWSIcon is a method used to update the widgetset class to
reflect the values from
HasIcon and the
Bitmap
property. HasIcon returns
True when a bitmap is available and in use
for the menu item. Bitmap contains the image displayed for the menu item, and
may be
Nil when HasIcon returns
False.
UpdateWSIcon requires a valid Handle for the menu item. No actions
are performed in the method when Handle has not been allocated for the menu
item.
UpdateWSIcon is called when a value is assigned to the Bitmap or
ImageIndex property, and from the UpdateImage method.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
