Vcl.ComCtrls.TCustomTreeView.CanChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanChange(Node: TTreeNode): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanChange(TTreeNode* Node);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Pending node change event dispatcher.

CanChange is called automatically whenever an attempt is made to change the selected node. The Node parameter indicates the currently selected node. CanChange returns true if selection can move away from the specified node, false otherwise.

If there is no OnChanging event handler, CanChange returns true.

Override this method to make additional, class-specific responses in addition to the OnChanging event or to suppress the OnChanging event.

See Also