TMenuItem.BitmapChange procedure
Updates the image associated with the menu item when it has been changed.
Declaration
procedure BitmapChange(Sender: TObject)Description
BitmapChange is a method used to updates the image associated with
the menu item when it has been changed. BitmapChange calls the
UpdateImage method retrieve the
Images or
SubMenuImages for the item, its ancestor items, or the parent menu.
If an image is already assigned to the Bitmap property, it is
freed. The value in ImageIndex is used to access the relevant
bitmap in the image list. -1 indicates that a bitmap image has not been
assigned for the menu item.
If the Handle for the control has been allocated, the widget set
class is notified of the change to the property value.
BitmapChange is used as the OnChange event handler for the Bitmap
property.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
