JVCL Help:TJvImagesViewer.DrawItem@Integer@TCustomDrawState@TCanvas@TRect@TRect

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

Search in JVCL Help

 
Search in all projects
 

Summary

Called when an item needs to be visually updated.


Pascal

 procedureDrawItem(Index: Integer; State: TCustomDrawState; Canvas: TCanvas; ItemRect: TRect; TextRect: TRect); override;


Parameters

Parameters Description
Index: Integer The index of the item in the Items array.
State: TCustomDrawState The current state of the item to draw.
Canvas: TCanvas The canvas to draw on.
ItemRect: TRect The rect of the item to draw excluding TextRect.
TextRect: TRect The rect of the text (if any) to draw. This rect is adjusted according to Options.Layout and Options.Alignment.


Description

DrawItem is called for each item when it needs to be redrawn. Override this method in a descendant class to change the way items are drawn. Depending on the value of Options.LazyRead, DrawItem is called differently. If LazyRead is true, DrawItem is called for each visible item. If LazyRead is false, DrawItem is called for all items.


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