Class TrCheckTreeView

Unit

Declaration

type TrCheckTreeView = class(TTreeView)

Description

enhanced TTreeView component which provides checkboxes and child/parent node auto check functions

Hierarchy

  • TTreeView
  • TrCheckTreeView

Overview

Methods

Public function GetCheckState(Node: TTreeNode): Boolean;
Public procedure SetCheckState(Node: TTreeNode; Checked: Boolean);
Public procedure SetAllChildrenCheckState(Node: TTreeNode; Checked: Boolean);
Public procedure SetAllParentsCheckState(Node: TTreeNode; AutoChecked, Checked: Boolean);
Public procedure SetAllItemsCheckState(Checked: Boolean);
Public function GetChildrenCount(Node: TTreeNode): integer;
Public function GetChildrenCheckedCount(Node: TTreeNode): integer;
Public function GetSiblinkCount(Node: TTreeNode): integer;
Public function GetSiblinkCheckedCount(Node: TTreeNode): integer;

Properties

Published property ShowCheckBox: Boolean read FShowCheckBox write SetShowCheckBox default false;
Published property AutoCheckChildren: Boolean read FAutoCheckChildren write FAutoCheckChildren default false;
Published property AutoCheckParents: Boolean read FAutoCheckParents write FAutoCheckParents default false;
Published property OnCheckBoxClick: TTVChangedEvent read FCheckBoxClick write FCheckBoxClick;

Description

Methods

Public function GetCheckState(Node: TTreeNode): Boolean;

return check state for defined node

Public procedure SetCheckState(Node: TTreeNode; Checked: Boolean);

set check state for defined node

Public procedure SetAllChildrenCheckState(Node: TTreeNode; Checked: Boolean);

set check state for defined node and all children

Public procedure SetAllParentsCheckState(Node: TTreeNode; AutoChecked, Checked: Boolean);

set check state for defined node and all parents

Public procedure SetAllItemsCheckState(Checked: Boolean);

set check state for all nodes

Public function GetChildrenCount(Node: TTreeNode): integer;

return number of all child nodes

Public function GetChildrenCheckedCount(Node: TTreeNode): integer;

return number of checked child nodes

Public function GetSiblinkCount(Node: TTreeNode): integer;

return number of all siblink nodes

Public function GetSiblinkCheckedCount(Node: TTreeNode): integer;

return number of checked siblink nodes

Properties

Published property ShowCheckBox: Boolean read FShowCheckBox write SetShowCheckBox default false;

define whether checkboxes are shown

Published property AutoCheckChildren: Boolean read FAutoCheckChildren write FAutoCheckChildren default false;

define whether children nodes are automatically set according parent node

Published property AutoCheckParents: Boolean read FAutoCheckParents write FAutoCheckParents default false;

define whether parent nodes are automatically set according children nodes

Published property OnCheckBoxClick: TTVChangedEvent read FCheckBoxClick write FCheckBoxClick;

event called after checkbox click


Generated by PasDoc 0.15.0.