JVCL Help:TDrawMenuItemEvent
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TDrawMenuItemEvent type
[+] JvMenus.pas Types
Search in JVCL Help
Search in all projectsSummary
This event is triggered when a menu item has to be painted by the owner
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 |
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
See Also
TJvMainMenu.OnDrawItem, TJvOwnerDrawMenuItemPainter, TJvPopupMenu.OnDrawItem
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