Vcl.Menus.TMenuItem.OnAdvancedDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedDrawItem: TAdvancedMenuDrawItemEvent read FOnAdvancedDrawItem write FOnAdvancedDrawItem;

C++

__property TAdvancedMenuDrawItemEvent OnAdvancedDrawItem = {read=FOnAdvancedDrawItem, write=FOnAdvancedDrawItem};

Properties

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

Description

Occurs when an owner-draw menu needs to be drawn.

Write an OnAdvancedDrawItem event handler to render the image of a menu item in an owner-draw menu.

In the event handler, use the Bitmap property or the ImageIndex property to access a bitmap that represents the menu item.

Note: OnAdvancedDrawItem will only occur if the parent menu's OwnerDraw property is true or the parent menu's Images property has been set.

See Also