Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomTreeView.CanChange

True if the specified tree node can be used in the Selected or Selections properties.

Declaration

Source position: comctrls.pp line 3508

protected function TCustomTreeView.CanChange(

  Node: TTreeNode

):Boolean; virtual;

Arguments

Node

  

Tree node examined in the method.

Function result

True if the specified tree node can be used in the Selected or Selections properties.

Description

Signals the OnChanging event handler (when assigned) to determine if a change is allowed for the specified tree node. Change entails using the tree node as the current Selected node, or including it in Selections when multi-select is enabled in the Options for the control.

The return value is updated in the event handler, and can be set to True to allow a change to the tree node. The return value is always True if the OnChanging event handler has not been assigned.

Use CanEdit to determine if the text for the tree node can edited in the control.

See also

TCustomTreeView.OnChanging

  

OnChanging - specialized event handler while TreeView is being changed.

TCustomTreeView.OnChange

  

OnChange - specialized event handler for a change in the TreeView.

TCustomTreeView.CanEdit

  

Returns True if the specified tree node can be edited.