Class TrCheckTreeView
Unit
rImprovedComps
Declaration
type TrCheckTreeView = class(TTreeView)
Description
enhanced TTreeView component which provides checkboxes and child/parent node auto check functions
Hierarchy
- TTreeView
- TrCheckTreeView
Overview
Methods
Properties
|
property ShowCheckBox: Boolean read FShowCheckBox write SetShowCheckBox default false; |
|
property AutoCheckChildren: Boolean read FAutoCheckChildren write FAutoCheckChildren default false; |
|
property AutoCheckParents: Boolean read FAutoCheckParents write FAutoCheckParents default false; |
|
property OnCheckBoxClick: TTVChangedEvent read FCheckBoxClick write FCheckBoxClick; |
Description
Methods
|
function GetCheckState(Node: TTreeNode): Boolean; |
return check state for defined node
|
|
procedure SetCheckState(Node: TTreeNode; Checked: Boolean); |
set check state for defined node
|
|
procedure SetAllChildrenCheckState(Node: TTreeNode; Checked: Boolean); |
set check state for defined node and all children
|
|
procedure SetAllParentsCheckState(Node: TTreeNode; AutoChecked, Checked: Boolean); |
set check state for defined node and all parents
|
|
procedure SetAllItemsCheckState(Checked: Boolean); |
set check state for all nodes
|
|
function GetChildrenCount(Node: TTreeNode): integer; |
return number of all child nodes
|
|
function GetChildrenCheckedCount(Node: TTreeNode): integer; |
return number of checked child nodes
|
|
function GetSiblinkCount(Node: TTreeNode): integer; |
return number of all siblink nodes
|
|
function GetSiblinkCheckedCount(Node: TTreeNode): integer; |
return number of checked siblink nodes
|
Properties
|
property ShowCheckBox: Boolean read FShowCheckBox write SetShowCheckBox default false; |
define whether checkboxes are shown
|
|
property AutoCheckChildren: Boolean read FAutoCheckChildren write FAutoCheckChildren default false; |
define whether children nodes are automatically set according parent node
|
|
property AutoCheckParents: Boolean read FAutoCheckParents write FAutoCheckParents default false; |
define whether parent nodes are automatically set according children nodes
|
|
property OnCheckBoxClick: TTVChangedEvent read FCheckBoxClick write FCheckBoxClick; |
event called after checkbox click
|
Generated by PasDoc 0.15.0.
|