Vcl.Menus.TMenuItem.Bitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Bitmap: TBitmap read GetBitmap write SetBitmap;

C++

__property Vcl::Graphics::TBitmap* Bitmap = {read=GetBitmap, write=SetBitmap};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Designates a bitmap that is drawn for the menu item.

Use Bitmap to provide a custom image that appears next to the caption in the menu item. On owner-draw menus, Bitmap can be used from an OnDrawItem event handler to represent the entire menu item or a portion of the menu item.

Note: If the ImageIndex property is set and the parent menu has a non-nil (Delphi) or NULL (C++) Images property, the image identified by ImageIndex is used instead of Bitmap.

See Also