Skip to content

HitTest Method

Description

Returns the TabControl that the user clicked. This will return the TabControlItem at a specific x and y coordinate if one exists. This can be helpful when determining where the user clicked in the TabControl.

Syntax

Public Function HitTest( _
    ByVal x As Long, _
    ByVal y As Long _
) As TabControlItem

Parameters

  • x: x coordinate of mouse
  • y: y coordinate of mouse

Remarks

Can be used to determine if the user actually right-clicked on a TabControl when the RClick event is triggered. The RClick event is triggered if the user right-clicks anywhere on the TabWorkspace.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.