ReadOnly: Boolean;
The ReadOnly property determines whether text of elements of the TreeList component can be edited.
Available values:
True. Default. Editing of elements text in the element tree by mouse click is locked.
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.
False. Editing of elements text in the element tree is allowed. To edit element text, select the element with a mouse and then once again click the selected element.
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: