ITabView.HitTest

Syntax

HitTest(X: Integer; Y: Integer): TabViewArea;

Parameters

X. X coordinate.

Y. Y coordinate.

Description

The HitTest method returns the part of the table, containing the point, the coordinates of which are passed as input parameters X and Y.

Comments

These coordinates can be obtained using any table events, the argument of which contains the pPoint property.

Example

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:

ITabView