JVCL Help:IJvDataItemRenderer.Draw

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

Search in JVCL Help

 
Search in all projects
 

Summary

Draw an item.


Pascal

 procedureDraw(ACanvas: TCanvas; varARect: TRect; State: TProviderDrawStates);


Parameters

Parameters Description
ACanvas: TCanvas Canvas to render to. On entry to this method it is assumed the canvas brush, pen and font are initialized to the proper values.
var ARect: TRect Rectangle in which to draw the item in. On entry it is assumed to be initialized properly (including any indentation for sub items). On exit this will be set to the textual part of the item.
State: TProviderDrawStates Draw states to consider during drawing. This might be needed to determine which image list and/or image index to use.


Description

Draw renders the associated item. The caller is responsible for initializing the canvas to the brush, pen and font color and providing an appropriate rectangle (including any indentation for sub items).


See Also

IJvDataItemRenderer.Measure, IJvDataItemsRenderer.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