Vcl.Outline.TCustomOutline.Style

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Style: TOutlineType read FStyle write SetStyle default otStandard;

C++

__property TOutlineType Style = {read=FStyle, write=SetStyle, default=0};

Properties

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

Description

Determines whether the nodes and tree are drawn automatically.

By default, Style is osStandard, meaning that the outline displays items in the style determined by the OutlineStyle property. Set Style to otOwnerDraw to create owner-draw outlines, meaning that items must be drawn on the canvas of the outline by code in an OnDrawItem event handler.

Owner-draw outlines can display items other than the Text of a node and the standard bitmaps specified in the PictureClosed, PictureOpen, PictureMinus, PicturePlus, and PictureLeaf properties. Owner-draw outlines require more programming, however, as the application must specify how to render the image for each node in an OnDrawItem event handler.

See Also