JVCL Help:TDrawMenuItemEvent

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

This event is triggered when a menu item has to be painted by the owner

run\JvMenus.pas


Pascal

 run\JvMenus.pas
 TDrawMenuItemEvent = procedure (Sender: TMenu; Item: TMenuItem; Rect: TRect; State: TMenuOwnerDrawState) ofobject;


Parameters

Parameters Description
Sender The Menu to which the Item belongs
Item The Item that needs to be drawn
Rect The area in the Canvas from the menu where the item is to be painted
State The current state of the menu

run\JvMenus.pas


Description

Access the Canvas property of the Sender to draw the given Item in the given Rect and respecting the given State. Please note that this event will only be triggered if the Style of the Sender is msOwnerDraw

run\JvMenus.pas


See Also

TJvMainMenu.OnDrawItem, TJvOwnerDrawMenuItemPainter, TJvPopupMenu.OnDrawItem

run\JvMenus.pas


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page