Vcl.Outline.TCustomOutline.OnDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDrawItem: TDrawItemEvent read FOnDrawItem write FOnDrawItem;

C++

__property Vcl::Stdctrls::TDrawItemEvent OnDrawItem = {read=FOnDrawItem, write=FOnDrawItem};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TCustomOutline

Description

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.

See Also