Vcl.ComCtrls.TCustomTreeView.RightClickSelect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RightClickSelect: Boolean read FRightClickSelect write FRightClickSelect default False;

C++

__property bool RightClickSelect = {read=FRightClickSelect, write=FRightClickSelect, default=0};

Properties

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

Description

Determines whether the Selected property returns nodes that are selected using the right mouse button.

Use RightClickSelect to allow the Selected property to indicate nodes the user clicks with the right mouse button. If RightClickSelect is true, the value of Selected is the value of the node last clicked with either the right or left mouse button. If RightClickSelect is false, the value of Selected is the node last clicked using the left mouse button.

RightClickSelect affects only the value of the Selected property. It does not cause the tree view to highlight a new node if the node is selected using the right mouse button.

Note: RightClickSelect must be set to true before the user right-clicks the tree view for it to affect the value of the Selected property.

See Also