Vcl.Outline.TOutline.OnDrawItem
Delphi
property OnDrawItem;
C++
__property OnDrawItem;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.Outline.pas Vcl.Outline.hpp |
Vcl.Outline | TOutline |
Description
Occurs when a node must be drawn in an owner-draw outline.
Vcl.Outline.TOutline.OnDrawItem inherits from Vcl.Outline.TCustomOutline.OnDrawItem. All content below this line refers to Vcl.Outline.TCustomOutline.OnDrawItem.
Occurs when a node must be drawn in an owner-draw outline.
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.
OnDrawItem is an event handler of type Vcl.StdCtrls.TDrawItemEvent.