FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Retrieving Column clicked in LISTBOX browse
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
Retrieving Column clicked in LISTBOX browse
Posted: Tue Oct 11, 2005 08:14 AM

How can I access the column number clicked when using a LISTBOX?

I thought oLbx:nAtCol held the value but apparently it is always ZERO

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Retrieving Column clicked in LISTBOX browse
Posted: Tue Oct 11, 2005 04:01 PM

GWard,

You have to call it this way: oLbx:nAtCol( nColPixel ) where nColPixel is the column in pixels where the mouse has clicked.

You may review classes\wbrowse.prg to see how such method is used.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
Retrieving Column clicked in LISTBOX browse
Posted: Wed Oct 12, 2005 08:22 AM

Many thanks,

I used oLbx:bLClicked := {|nRow,nCol,nKeyFlags| MyFunction(oLbx,nCol)}

Then

FUNCTION MyFunction(oLbx,nCol)
LOCAL iActualCol := oLbx:nAtCol(nCol)

do case
case iActualCol=1
endc
... Etc

Continue the discussion