How to handle RClick on TWBrowse

How to handle RClick on TWBrowse

Postby Rafael Clemente » 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
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Postby pymsoft » Mon Nov 07, 2005 1:09 pm

Try this:

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


Pedro Gonzalez
Savona - Italia
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Postby Rafael Clemente » Mon Nov 07, 2005 3:48 pm

Pedro:
Just tested your suggestion and it worked beautifully. Thanks!!!
Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 65 guests