[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.ReadOnly

Indicates whether the text (or caption) for tree nodes can be edited in the control.

Declaration

Source position: comctrls.pp line 3672

protected property TCustomTreeView.ReadOnly : Boolean
  read GetReadOnly
  write SetReadOnly
  default False;

Description

ReadOnly is a Boolean property which indicates whether the text for the TTreeNode instances in Items can be edited in the control. When ReadOnly is set to False, the BeginEditing method is not called when the F2 key is pressed, or when the Left mouse button is double clicked. The default value for the property is False.

The property value is True when tvoReadOnly has been included in the Options for the control. Setting a new value for the property causes tvoReadOnly to be included in or excluded from the values in Options. Changing the value to False causes the EndEditing method to be called.


Version 3.2 Generated 2024-02-25 Home