JVCL Help:TJvCustomTimeLine.OnMeasureItem
JVCL Help: TJvCustomTimeLine.OnMeasureItem Event
Search in JVCL Help
Search in all projectsSummary
Occurs when the application needs to redisplay an item in a variable height owner-draw timeline view.
Pascal
TJvMeasureTimeItemEvent = procedure (Sender: TObject; Item: TJvTimeItem; varItemHeight: Integer) ofobject;
propertyOnMeasureItem: TJvMeasureTimeItemEvent;
Parameters
Parameters | Description |
ItemHeight | Specifies the height of the item. |
Item | Specifies item in the control. |
Sender | The timeline view control in which an item is about to be drawn. |
Description
Use OnMeasureItem to write a handler to measure items to be drawn in a timeline view with a Style property value of lbOwnerDrawVariable.
The ItemHeight parameter should specify the height in pixels that the given item will occupy in the control. The ItemHeight parameter is passed by reference (a var parameter), which initially contains the default height of the item or the height of the item text in the control's font. The handler can set ItemHeight to a value appropriate to the contents of the item, such as the height of a graphical image to be displayed within the item.
After the OnMeasureItem event occurs, the OnDrawItem event occurs, rendering the item with the measured size.
See Also
TJvCustomTimeLine.ItemHeight, TJvCustomTimeLine.OnDrawItem, 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