Skip to content

HitTest Method

Description

Returns the TabControlItem that the user clicked.

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.

Return Type

The TabControlItem clicked on.

Remarks

This method can be used to determine if the user actually right-clicked on a TabControlItem when the RClick event is triggered. The RClick event is triggered if the user right-clicks anywhere on the TabWorkspace. It returns the TabControlItem at a specific x and y coordinate if one exists. This can be helpful when determining where the user clicked in the tab workspace.

See Also


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