ITreeControl.Locked

Fore Syntax

Locked: Boolean;

Fore.NET Syntax

Locked: boolean;

Description

The Locked property determines whether it is possible to change selection and edit element text in the component.

Comments

If the property is set to True, the possibility to change selection and to edit element text is locked. When the Locked property is set to True, the ReadOnly property automatically becomes True.

NOTE. This property locks the possibility to change selection and to edit elements in the component only with the help of the mouse and keyboard. It is possible to change selection and to edit the text of the elements using the appropriate properties and method in the core, if the Locked property has any values.

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.Locked := False;
End Sub Button1OnClick;

After executing the example clicking the buttons enables element text editing and selection changing 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.Locked := 
True;
End Sub;

See also:

ITreeControl

ITreeControl.ReadOnly