Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptions.HitTest Method

Determines the entry at the given cursor coordinates.

Syntax

VB.NETName = object.HitTest(ByVal xPos As Single, ByVal yPos As Single) As String
VBName = object.HitTest(ByVal xPos As Single, ByVal yPos As Single) As String
C#.NETstring Name = object.HitTest(float xPos, float yPos);
VC++_bstr_t Name = object->HitTest(float xPos, float yPos);
CHRESULT object->raw_HitTest(float xPos, float yPos, BSTR* Name);

object

A SftOptions object.

xPos

The x coordinate of the location for which the entry name is to be returned. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

yPos

The y coordinate of the location for which the entry name is to be returned. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

Name

Returns the entry name at the given cursor coordinates. If the coordinates describe the column header, "Header" is returned. If the coordinates are not on an entry, "Empty Area" is returned.

Comments

The HitTest method determines the entry at the given cursor coordinates.

If an entry is found at the coordinates (x, y), the entry name (Entry.Name property) is returned. The Entry property can be used to retrieve the SftOptionsEntry object.

The equivalent HitTestPix method uses pixels as xPos and yPos arguments.

See Also SftOptions Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.