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

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:

TabSheetBox