HitTest(X: Integer; Y: Integer): TabViewArea;
X. X coordinate.
Y. Y coordinate.
The HitTest method returns the part of the table, containing the point, the coordinates of which are passed as input parameters X and Y.
These coordinates can be obtained using any table events, the argument of which contains the pPoint property.
Sub TabSheetBox1OnMouseDown(Sender: Object; Args: IMouseClickEventArgs);
Var
s: String;
Begin
s := UiTabSheet1.TabSheet.View.HitTest(Args.pPoint.X, Args.pPoint.y).ToString;
End Sub TabSheetBox1OnMouseDown;
After executing the example the "s" variable will contain a numeric value of the region, in which the mouse was clicked.
See also: