ReadOnly: Boolean;
_ReadOnly: boolean;
The ReadOnly property determines whether element text can be edited.
Available values:
True. Default. Elements text edit is denied. Element parameters can be changed using the ITreeListNode.Text, or ITreeListNode.ColumnText properties.
NOTE. Editing of other interface elements is not denied.
False. Elements text edit is allowed in elements tree. To open the dialog box for element value editing, select it and make single mouse click on the intersection of the selected element and necessary column.
Executing the example requires that the from contains the Button component named Button1 and the TreeList component named TreeList1 (for Fore.NET example use the TreeListNet component named TreeListNet1.
Add links to the system assemblies:
for Fore example: Forms.
for Fore.NET example: Forms, Forms.Net.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
TreeList1.ReadOnly := False;
End Sub Button1OnClick;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
TreeListNet1._ReadOnly:= True;
End Sub;
As a result of example execution, after clicking the button for the TreeList component it will be allowed to edit element text.
See also: