How to handle RClick on TWBrowse

Post Reply
User avatar
Rafael Clemente
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

How to handle RClick on TWBrowse

Post by Rafael Clemente »

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
User avatar
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Post by pymsoft »

Try this:

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


Pedro Gonzalez
Savona - Italia
User avatar
Rafael Clemente
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Post by Rafael Clemente »

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