Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right Click Edit Copy Paste....

Status
Not open for further replies.

DJVisuaL

Programmer
May 31, 2000
52
US
I keep loosing my right mouse click popups!?!?
any ideas how to get them back?
It happens some time during design...
Usually the first build I can right click on any textbox and get edit.. copy .. paste etc..
but somewhere along the line I always seem to loose it !!
maybe I am changing some option that disables the popups?
BTW I never have put code in the right-click event of textboxes so I know it isn't that..
I have resized textbox controls... is there a certain length/width before an edit/copy/paste popup will show?
*confused*
DJ
[sig][/sig]
 
DJ, there are many confusing things in VFP. We passed that period already so far. What we did is just not tried to investigate where problem is and made base class for all textboxes with built-in code in RightClick event. You can use following standard VFP menu item names to put correct functionality into your menu:
_MED_CUT
_MED_COPY
_MED_PASTE
_MED_CLEAR
_MED_SLCTA
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
I'm working on a VFP 6 application and am having this same problem. I never got any popup from right clicking my fields, so I was planning to do just what you said and create custom right-click methods for user-defined text/edit boxes. I almost got it working. I'm popping up a box at the mouse location, but all of the options are always &quot;on&quot; until you click one of the options, then the unavailable ones grey themselved out. Other strange behaviors also.

I am using code like:
procedure rightclick
define popup my_edit from mrow(),mcol() margin
define bar _med_cut of my_edit prompt &quot;Cu\t&quot; key CTRL+X,&quot;CTRL+X&quot; message &quot;Cut&quot;
...
on selection popup my_edit deactivate popup my_edit
endproc

Any clues?
 
Hi,

Have a look at the &quot;solution-sample&quot; supplied with VFP.

The menu-subject :
Display shortcut menus will give you the answer to your problem.

-Bart

 
Ah, I see. All I was missing was the keyword &quot;shortcut&quot;

Now running fine as:
define popup my_edit from mrow(), mcol() margin shortcut
define bar _med_cut of my_edit;
prompt &quot;Cu\t&quot;;
key CTRL+X, &quot;CTRL+X&quot;;
message &quot;Cut&quot;
....
activate popup my_edit

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top