GRID.CellFromPoint

Previous  Next

 

state = GRID.CellFromPoint( BYVAL nControl AS INTEGER,

                            BYVAL xPos     AS INTEGER,

                            BYVAL yPos     AS INTEGER ) AS INTEGER

 

 

 

 

Returns the row and column from cursor location.  Row is lower part of an initeger and column in high part

 

Example:

 

DIM cell AS INTEGER

Cell = GRID.CellFromPoint( nControl, 40, 344 )

PRINT “Row: “;LOWORD( cell );”, Col: “;HIWORD( cell ),