Unicode Controls & Classes for VB6 - Version 4

ctlUniGrid.GetColByAbsX Function

Returns the column number relative to a certain X coordinate (the X coordinate with the HScroll_Value)

Syntax
Public Function GetColByAbsX (ByVal x As Long) As Long
Parameters
Parameter Description
ByVal x As Long The x coordinate
Remarks
If the X coordinate passed to this methid is not into any cell the result is -1&
Note: the "HScroll_Value" is NOT automatically added to the X coordinate.