HitTest Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

SequenceView.HitTest ( x, y)

Return Value

Long

Returns a numeric item index.

Purpose

Returns the zero-based index of the step at the location you specify. When the location is on the End step, the index is equal to the number of steps in the step group the control displays. A value of -1 indicates the location is not on a step.

Remarks

Use this method to determine the item to which the given coordinates belong. For example, when a user clicks on the control, you might want to determine the item the user clicked.

Parameters

x As Long

[In] Specifies the x-coordinate of the location to test, in pixels, relative to the control.

y As Long

[In] Specifies the y-coordinate of the location to test, in pixels, relative to the control.

WAS THIS ARTICLE HELPFUL?

Not Helpful