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

problem to create Copy/Paste in FoxPro2.6

Status
Not open for further replies.

bm2

Programmer
Apr 6, 2006
5
US
Gentlemen,
I want to create a Copy/Paste function under Menu. it can only highlight the text field, but unable to copy the content. Did I miss anything? your help will be appreciated.

Prompt Result
\<File Submenu Edit (buttion)

========================
Within Edit button:
Prompt Result
Copy Process Edit

Paste Process Edit
=================================
Within Copy Edit button:
ON KEY LABEL Ctrl+C

Within Paste Edit button:
ON KEY LABEL Ctrl+V
 
First, we're not all gentlemen here. Some of us are ladies. <s>

The problem with what you're doing is that you have to have the Copy and Paste items available for Ctrl+C and Ctrl+V to work. Fortunately, that's easy.

Instead of defining your own, you can use the built-in Copy and Paste items. Specify Bar # for the Result and then use _med_copy and _med_paste for the values.

In general, the easiest way to create a menu in VFP is to first create a quick menu (Menu > Quick Menu in the Menu Designer) and then remove all the things you don't want. They way, you can keep all the built-in bars that you need.

Tamar
 
Thanks ladies.
After changed to your way and build the Executable, the function was [gray]gray[/gray] out.

Prompt Result
\<File Submenu Edit (buttion)

========================
Within Edit button:
Prompt Result
Copy Bar# _med_copy

Paste Bar# _med_paste
 
bm2,
copy and paste are in function,
only after you highlight edited text...
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top