Accessibility: Boolean;
The Accessibility property determines whether tree elements will be active.
Available values:
True. Elements are active.
False. Elements are not active.
Executing the example requires a form and the TreeList component with the TreeList1 identifier and the Button button with the Button1 identifier on it. One column is added to the TreeList component, for which one element with subelement are added.
The example is an event handler for the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
treelist1.Nodes.BeginUpdate;
treelist1.nodes.FirstNode.Accessibility := False;
treelist1.nodes.FirstNode.NextNode.Accessibility := False;
treelist1.Nodes.EndUpdate;
End Sub Button1OnClick;
After executing the example, element and subelement will be inactive in the TreeList component.
See also: