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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keyboard '{CTRL+V}' and Keyboard '{CTRL+C}' 1

Status
Not open for further replies.

keepingbusy

Programmer
Apr 9, 2000
1,470
GB

This is probably staring me in the face, but I need your advice guys:

I have the following command in the right click event of a text box to allow the user to "Paste" in text:
Code:
Keyboard '{CTRL+V}'
I am aware that:
Code:
Keyboard '{CTRL+C}'
will allow the "Copying" of text.

What I am trying to achieve is for the user to click into a field (text box) on a form, be able to copy all the text contained in that text box using an automated process (such as Keyboard '{CTRL+C}')

It's quite easy to use the keyboard (CTRL&C) but that's not what we are after.

I can't use left click because that would mean every time someone clicked into the text box, it would be asking to "Copy", I cant use right click (already being used by Keyboard '{CTRL+V}' and finally, if you highlight all the text in the field (text box) and then click on it (Or double click on a word) it only highlights one word and not all of them.

I have though about using a Function key to achieve CTRL&C but if the mouse can be used, that would be more appropriate for this project.

Some guidance would be very much appreciated.

Thank you

Lee


 
Mike

Your sollution to this thread was quite easy to resolve (especially as I had not used a menu in these circumstances)

Sometimes less is more as I'm sure you will agree.

Thanks again all


Lee

Windows Vista
Visual FoxPro Versions 6 & 9
 
...quite useful to use the generator to produce the basic code, which you can then hand-modify and put in your method...
Exactly what I do. Just dont keep the menu as a mnx, mpr etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top