Determines the tab index of a tab at a given location.
| VB | TabIndex = object.HitTest(ByVal Left As Single, ByVal Top As Single) As Integer |
object
Left
The horizontal position for which the tab index is to be found. The units used depend on the current coordinate system used (usually TWIPS).
Top
The vertical position for which the tab index is to be found. The units used depend on the current coordinate system used (usually TWIPS).
TabIndex
Returns the zero-based index of the tab at the given location. -1 is returned if no tab is found.
The HitTest method determines the tab index of a tab at a given location.
The HitTest and HitTestPix methods are synonyms, but use different coordinate systems.
See Reorder Sample
Next
.BulkUpdate = False
End With
End Sub
Private Sub SftTabs1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
' Save the tab index of the tab that was clicked
If Button = constSftTabsLeftButton Then
StartTabIndex = SftTabs1.Tabs.HitTest(xPos, yPos)
StartX = xPos ' save the starting location
StartY = yPos
End If
End Sub
Private Sub SftTabs1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
Dim TabIndex As IntegerSee Also SftTabsTabs Object | Object Hierarchy