JVCL Help:TItemParamsEvent

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 just before painting but before the GetxxImageIndex events so that you can change more specific values of the item about to be drawn

run\JvMenus.pas


Pascal

 run\JvMenus.pas
 TItemParamsEvent = procedure (Sender: TMenu; Item: TMenuItem; State: TMenuOwnerDrawState; AFont: TFont; var Color: TColor; var Graphic: TGraphic; var NumGlyphs: 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
AFont The current font for the item. Use Assign to change it
Color The current color of the item
Graphic The current graphic for the item. Usually nil.
NumGlyphs The number of glyphs in the Graphic object ##See Also ## TJvCustomMenuItemPainter.PreparePaint

run\JvMenus.pas


Description

If you don't supply a handler for this event, no change will be done to the menu item and the Item Painter will follow its default behavior