ITreeControl.ReadOnly

Fore Syntax

ReadOnly: Boolean;

Fore.NET Syntax

ReadOnly: boolean;

Description

The ReadOnly property determines whether elements text can be edited.

Comments

The property is set to True by default, it is impossible to edit elements text in the elements tree. Element parameters can be changed using the Text, or ColumnText properties.

If the property is set to False, elements text can be edited. To edit the element, select it and make single mouse click on the intersection of the selected element and necessary column. The value edit dialog box opens in a few seconds.

Fore Example

Executing the example requires a form containing the Button component with the Button1 identifier and the TreeList component with the TreeList1 identifier.

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

After executing the example clicking the button enables element text editing for the TreeList component.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    TreeListNet1._ReadOnly:= 
True;
End Sub;

See also:

ITreeControl

ITreeControl.Locked