HitTest Method
Description
Call this method to determine which pane, if any, is at the specified screen position.
Syntax
Public Function HitTest( _
ByVal x As Long, _
ByVal y As Long _
) As StatusBarPane
Parameters
- x: X coordinate to test.
- y: Y coordinate to test.
Return Type
Returns a reference to the StatusBarPane at the specified screen position. If no pane exists at the screen position, then Null is returned.
Remarks
The HitTest method can use the x and y parameters of the MouseDown and MouseUp events to determine if a pane was under the mouse pointer when it was pressed or released.
See MouseDown for an example.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.