TabSheetBox.OnBeforeEdit

Syntax

Sub TabSheetBoxOnBeforeEdit(Sender: Object; Args: ITabCellBeforeEditEventArgs);

Begin

//set of operators

End Sub TabSheetBoxOnBeforeEdit;

Parameters

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.

Description

The OnBeforeEdit event occurs before starting editing of the cell of the TabSheetBox component.

Example

Executing the example requires this procedure is set as the OnBeforeEdit event handler for the TabSheetBox component with the TabSheetBox1 identifier.

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:

TabSheetBox