RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.OnDrawItem Event

Occurs when a node must be drawn in an owner-draw outline.

Pascal
property OnDrawItem: TDrawItemEvent;
C++
__property TDrawItemEvent OnDrawItem;

When the Style property is set to otOwnerDraw, specify an OnDrawItem event handler to render the image of each node in the outline. An OnDrawItem event handler can display items other than the Text of a node and the standard bitmaps specified in the PictureClosed, PictureOpen, PictureMinus, PicturePlus, and PictureLeaf properties.  

Draw the image of the node specified by the Index parameter onto the canvas of the outline. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!