FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to handle RClick on TWBrowse
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
How to handle RClick on TWBrowse
Posted: Mon Nov 07, 2005 10:08 AM

Perhaps this question has already been answered but after much experimentation I could not find the solution:

I am using a TWBrowse and I would like to RClick on any row and inmediatelly open an small window to edit the contens of that register.

Of course, I have tried oBrw:bRClicked().... The problem is that I am forced first to LClick on the row I want to edit and then, RClick again. Is there any way to achive the following with just ONE RClick:

a) Select the appropiate row
b) Open the edit window (or a Popup menu or whatever)

Thanks,

Rafael

Posts: 383
Joined: Tue Oct 11, 2005 01:01 PM
How to handle RClick on TWBrowse
Posted: Mon Nov 07, 2005 01:09 PM

Try this:

oBrw:bRClicked = { | nRow, nCol | ( oBrw:setFocus(), oBrw:lButt
onDown(nRow,nCol), YourFunction( nRow, nCol, oBrw ) ) }

Pedro Gonzalez
Savona - Italia

Pedro Gonzalez
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
How to handle RClick on TWBrowse
Posted: Mon Nov 07, 2005 03:48 PM

Pedro:
Just tested your suggestion and it worked beautifully. Thanks!!!
Rafael

Continue the discussion