Vcl.Samples.DirOutln.TDirectoryOutline.Style

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Style;

C++

__property Style = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Samples.DirOutln.pas
Vcl.Samples.DirOutln.hpp
Vcl.Samples.DirOutln TDirectoryOutline

Description

Determines whether the nodes and tree are drawn automatically.

Vcl.Samples.DirOutln.TDirectoryOutline.Style inherits from Vcl.Outline.TCustomOutline.Style. All content below this line refers to Vcl.Outline.TCustomOutline.Style.

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