ReadOnly(SlotIndex: Integer, ElementIndex: Integer): Boolean;
SlotIndex is an index of a slot in a header.
ElementIndex - index of the element in a header.
The ReadOnly property returns whether header element is available for edit.True - the attribute values is read only.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Table: ILanerTable;
Left: ILanerLeftHeader;
b: Boolean;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
Table := Laner.Execute;
Left := Table.LeftHeader;
b := Left.ReadOnly(0, 0);
If b Then
WinApplication.InformationBox("The element can not be edited.");
Else WinApplication.InformationBox("The element can be edited.");
End If;
End Sub Button1OnClick;
After executing the example the message with the information about the header element, that is red frame highlighted on the image, being editable:
See also: