JVCL Help:TJvCustomItemViewer.OnDrawItem

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

Search in JVCL Help

 
Search in all projects
 

Summary

Called whenever an item needs to be drawn.


Pascal

 TJvViewerItemDrawEvent = procedure (Sender: TObject; Index: Integer; State: TCustomDrawState; Canvas: TCanvas; ItemRect, TextRect: TRect) ofobject;
propertyOnDrawItem: TJvViewerItemDrawEvent;


Parameters

Parameters Description
Canvas The control's canvas to draw on.
ItemRect The bounding rect of the item to draw, excluding the text area.
TextRect The bounding rect of the text area for the item.
Sender The object that triggered the event.
Index The index of the item to draw.
State The state of the item to draw.


Description

Assign an event handler to the OnDrawItem to control the way an item is drawn in the control. DrawItem calls OnDrawItem for each item in the Items array as needed.


See Also

TJvCustomItemViewer.DrawItem


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