Retrieving Column clicked in LISTBOX browse

Retrieving Column clicked in LISTBOX browse

Postby GWard » Tue Oct 11, 2005 8: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
GWard
 

Postby Antonio Linares » Tue Oct 11, 2005 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby GWard » Wed Oct 12, 2005 8: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
GWard
 


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 3 guests