FMX.TreeView.TTreeView.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TNotifyEvent read FOnChange write FOnChange;

C++

__property OnChange;

Properties

Type Visibility Source Unit Parent
event published
FMX.TreeView.pas
FMX.TreeView.hpp
FMX.TreeView TTreeView

Description

Occurs whenever the selection has changed from one item to another.

FMX.TreeView.TTreeView.OnChange inherits from FMX.TreeView.TCustomTreeView.OnChange. All content below this line refers to FMX.TreeView.TCustomTreeView.OnChange.

Occurs whenever the selection has changed from one item to another.

Write an OnChange event handler to take specific action when the selected node changes. The Sender parameter is the tree view whose selected item changes.

Note: The OnChange event does not occur for nodes selected using the right mouse button. To respond to changes when the right mouse button is clicked, use the OnMouseUp event.

OnChange is an event handler of type TNotifyEvent.

See Also