Sub TabSheetBoxOnCellClick(Sender: Object; Args: ITabCellEventArgs);
Begin
//set of operators
End Sub TabSheetBoxOnCellClick;
Sender - a parameter, indicating the component, in which the event has occurred.
Args - a parameter, which allows to define the cell, which has been edited.
The OnCellClick event occurs on clicking in the table cell.
To execute the example, this procedure has to be assigned as an event handler to the event OnCellClick for the component TabSheetBox named «TabSheetBox1».
Sub TabSheetBox1OnCellClick(Sender: Object; Args: ITabCellEventArgs);
Var
i,j: Integer;
Begin
i:=Args.Row;
j:=Args.Column;
End Sub TabSheetBox1OnCellClick;
After the event has occurred, the variable «i» will contain the row number, and the variable «j» - the column number of the cell, which has been clicked.
See also: