JVCL Help:TItemImageEvent

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 whenever a painter needs to know the image index for a menu item about to being paint.

run\JvMenus.pas


Pascal

 run\JvMenus.pas
 TItemImageEvent = procedure (Sender: TMenu; Item: TMenuItem; State: TMenuOwnerDrawState; var ImageIndex: Integer) ofobject;


Parameters

Parameters Description
Sender The menu to which the item belongs
Item The item to be modified
State The state of the item
ImageIndex The image index, you can modify this value

run\JvMenus.pas


Description

This event will be triggered if the Images property is set. If you supply a handler, then you can change the image index you set during design time. If you don't, the image index set during design time will be used

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