RAD Studio VCL Reference
|
Used in the TCustomTreeView.OnAdvancedCustomDrawItem event.
TTVAdvancedCustomDrawItemEvent = procedure (Sender: TCustomTreeView; Node: TTreeNode; State: TCustomDrawState; Stage: TCustomDrawStage; var PaintImages, DefaultDraw: Boolean) of object;
(Sender: TCustomTreeView; Node: TTreeNode; State: TCustomDrawState; Stage: TCustomDrawStage; var PaintImages, DefaultDraw: Boolean) ( TTVAdvancedCustomDrawItemEvent)();
ComCtrls
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|