ITreeControl.ReadOnly

Syntax

ReadOnly: Boolean;

Description

The ReadOnly property determines whether text of elements of the TreeList component can be edited.

Comments

Available values:

NOTE. Locking of elements text editing is not applied to other interface elements. This property locks component elements text from editing only via mouse click. Elements text can be edited by means of the corresponding ITreeListNode.Text and ITreeListNode.ColumnText properties at any values of the ReadOnly property.

Example

Executing the example requires a form, the Button component named Button1 and the ListView component named ListView1 on the form.

Add a link to the Forms system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    
TreeList1.ReadOnly := False
;
End Sub Button1OnClick;

After executing the example, after the button is clicked, elements text editing is allowed for the TreeList component.

See also:

ITreeControl | ITreeControl.Locked