Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>natcol</b> returns the column placed at a specific pixel position http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 nAtCol          Returns the column placed at a specific pixel position
--------------------------------------------------------------------------------

   TWBrowse::nAtCol( <nPixelCol> ) --> <nCol>

   This METHOD returns the column where certain pixel position corresponds.

   When the mouse is being clicked on a browse, the <nCol> parameter
   of the mouse event specifies the pixel coordinate of the click. Using
   this METHOD you may know what browse column corresponds to that position.

   <oBrw>:bLDblClick = { | nRow, nCol, nKeyFlags | ;
          MsgInfo( "Clicked at column:" + Str( oBrw:nAtCol( nCol ) ) ) }

   This will let you easily make a :lEditCol() call to edit that specific
   cell.

   See SOURCE\FUNCTION\Browse.prg for a working sample of how to automatically
   edit a cell when the user double clicks on a column (using this METHOD).


Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson