Description | Hierarchy | Fields | Methods | Properties |
type TRbwCheckTreeView = class(TTreeView)
TRbwCheckTreeView
is a TTreeView that has checkboxes at each node.
If a node has children, its checkbox is checked if all its children's checkboxes are checked. Its checkbox is unchecked if all its children's checkboxes are unchecked. Its checkbox is grayed if only some of its children's checkboxes are checked.
![]() |
FImageList: TImageList; |
![]() |
FOnCheckChange: TTVCheckItemNotifyEvent; |
![]() |
FReadOnly: boolean; |
![]() |
FUpdateCount: integer; |
![]() |
FUpdating: boolean; |
![]() |
function GetImages: TCustomImageList; |
![]() |
procedure UpdateChildren(ParentNode: TTreeNode); |
![]() |
procedure UpdateParent(ChildNode: TTreeNode); |
![]() |
procedure DoAutoExpand(ExpandedNode: TTreeNode); |
![]() |
procedure DoDeletion(ANode: TTreeNode); override; |
![]() |
procedure DoItemClick(p1: Integer; p2: QListViewItemH; p3: PPoint; p4: Integer); cdecl; |
![]() |
procedure HookEvents; override; |
![]() |
procedure SetCheck(Sender: TObject; Button: TMouseButton; Node: TTreeNode; const Pt: TPoint); |
![]() |
procedure BeginUpdate; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure EndUpdate; |
![]() |
property Images: TCustomImageList read GetImages; |
![]() |
property ReadOnly: boolean read FReadOnly write FReadOnly; |
![]() |
property OnCheckChange: TTVCheckItemNotifyEvent read FOnCheckChange write
FOnCheckChange; |
![]() |
FImageList: TImageList; |
|
![]() |
FOnCheckChange: TTVCheckItemNotifyEvent; |
|
![]() |
FReadOnly: boolean; |
|
![]() |
FUpdateCount: integer; |
|
![]() |
FUpdating: boolean; |
|
![]() |
function GetImages: TCustomImageList; |
|
![]() |
procedure DoAutoExpand(ExpandedNode: TTreeNode); |
Reimplemented from TTreeView. DoAutoExpand of the inherited tree view is private but needs to be used so it is reimplemented here. |
![]() |
procedure DoDeletion(ANode: TTreeNode); override; |
|
![]() |
procedure HookEvents; override; |
|
![]() |
procedure SetCheck(Sender: TObject; Button: TMouseButton; Node: TTreeNode; const Pt: TPoint); |
|
![]() |
procedure BeginUpdate; |
See EndUpdate. |
![]() |
constructor Create(AOwner: TComponent); override; |
see inherited Create |
![]() |
destructor Destroy; override; |
|
![]() |
procedure EndUpdate; |
If TCheckNode.Checked will be changed programatically for more than one TCheckNode at a time, use BeginUpdate before the code that changes them followed by |
![]() |
property Images: TCustomImageList read GetImages; |
The inherited Images contains the checkbox images. The first image is for the unchecked state. The second is for the checked state. The third is for the grayed state. The images are 13 pixels square. If a different size checkbox is needed, you will have to adjust the constants in SetCheck. At present, the user is not given the option of changing any of the images so Images is reimplemented and is always nil. |
![]() |
property ReadOnly: boolean read FReadOnly write FReadOnly; |
If |
![]() |
property OnCheckChange: TTVCheckItemNotifyEvent read FOnCheckChange write
FOnCheckChange; |
|