JVCL Help:TJvCustomTimeLine.OnDrawItem

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

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when an item in an owner-draw timeline view needs to be redisplayed.


Pascal

 TJvDrawTimeItemEvent = procedure (Sender: TObject; Canvas: TCanvas; Item: TJvTimeItem; var R: TRect) ofobject;
propertyOnDrawItem: TJvDrawTimeItemEvent;


Parameters

Parameters Description
Item Specifies the item that needs to be redisplayed.
R Indicates the boundaries (in pixels) of the item on that canvas.
Sender The timeline view control in which an item is about to be drawn.
Canvas Provides a drawing surface on which to draw the menu item.


Description

Use OnDrawItem to write a handler for drawing of the items in timeline views with the Style values lbOwnerDrawFixed or lbOwnerDrawVariable. OnDrawItem occurs when the timeline view needs to display an item. OnDrawItem occurs only for owner-draw timeline views.
The size of the rectangle that contains the item is determined either by the ItemHeight property or fixed owner-draw timeline views or by the response to the OnMeasureItem event for variable owner-draw timeline views.


See Also

TJvCustomTimeLine.ItemHeight, TJvCustomTimeLine.OnMeasureItem, TJvCustomTimeLine.Style


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