Any possibility you have right click parent code further up the line that is 
preventing that particular text box from responding to the right click? You 
could turn on event tracking to dig deeper if there's not an obvious reason.

I might add a method to the grid object instead of calling an external MPR; 
then use bindevents to hook the column objects to call the grid method (unless 
you only want this menu to come up from the first cell). In the grid init, put 
something like this:

FOR EACH oColumn IN this.columns
        IF VARTYPE(oColumn.Text1)=[O]
                
BINDEVENT(oColumn.Text1,[RightClick],thisform,[handleGridRightClick])
        ENDIF 
NEXT

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Peter Hart
Sent: Wednesday, September 08, 2010 3:38 PM
To: [email protected]
Subject: Right click memus in grids

Hi Folks

I have a grid on a pageframe  which I want to copy the details of the
current record to the Clipboard.

I have create a short cut menu and generated it.

In the Right Click of the first columns text box I have place the code

Do sctCopyToClipboard.mpr

Nothing happens when you right click.

It doesn't happen if you put it in the Right click of the Grid or any of
the other columns text box's.

I have a breakpoint on each line of code and the Right click does not
appear to be activated.

I have also tried all combination of read only and enabled

Any Ideas

Peter

Peter Hart Computers


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd0441900496...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to