Sub TabSheetBoxOnBeforeEdit(Sender: Object; Args: ITabCellBeforeEditEventArgs);
Begin
//set of operators
End Sub TabSheetBoxOnBeforeEdit;
Sender - a parameter, indicating the component, in which the event has occurred.
Args - a parameter, which allows to define the cell, in which the event has occurred.
The OnBeforeEdit event occurs before starting editing of the cell of the TabSheetBox component.
To execute the example, this procedure has to be assigned as an event handler to the event OnBeforeEdit for the component TabSheetBox named «TabSheetBox1».
Sub TabSheetBox1OnBeforeEdit(Sender: Object; Args: ITabCellBeforeEditEventArgs);
Begin
Args.Cancel:=True;
End Sub TabSheetBox1OnBeforeEdit;
As a result, editing the selected cell will be cancelled.
See also: