Vcl.ComCtrls.TTVAdvancedCustomDrawItemEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TTVAdvancedCustomDrawItemEvent)(TCustomTreeView* Sender, TTreeNode* Node, TCustomDrawState State, TCustomDrawStage Stage, bool &PaintImages, bool &DefaultDraw);

Properties

Type Visibility Source Unit Parent
typedef public Vcl.ComCtrls.hpp Vcl.ComCtrls Vcl.ComCtrls

Description

Used in the TCustomTreeView.OnAdvancedCustomDrawItem event.

This event is used in the TCustomTreeView.OnAdvancedCustomDrawItem event when an item is about to be painted.

Sender is the tree-view control in which an item is about to be painted.

Node is the item that is about to be painted.

State is the item's current state, which is a TCustomDrawState type: one or more of cdsSelected, cdsGrayed, cdsDisabled, cdsChecked, cdsFocused, csDefault, cdsHot, cdsMarked, cdsIndeterminate.

Stage is a TCustomDrawStage type that indicates the current stage of the painting process.

PaintImages specifies whether the control should paint the images associated with the control. This parameter is only used when Stage is cdPrePaint.

DefaultDraw specifies whether the control should paint the text of the item after the event handler exits. This parameter is only used when Stage is cdPrePaint.

See Also