Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy and Paste anyone?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054062
Message ID:
00054131
Views:
28
>>>what about the Edit option on the system menu bar? can you not take advantage of the cut/copy/paste functionality of it in your app? or do you totally replace the system menu bar with your own?
>>
>>
>>Mark, I'm already using the edit option in my app's menu, with cut-copy-paste-clear options in it, I even created a right click shortcut menu with these options as well; the thing is that my client REALLY (??) wishes to see those buttons in the form when the editing mode is activated (I use an activate-deactivate feature on the grid), so that's why I need some routine that reads selected text, copies it to the clipboard, blah, blah...
>>
>>Thanks,
>
>Assuming that edit menu is available, could you add commandbutton with one line in Click event, e.g.:
>keyboard '{CTRL+C}'

ButtonCopy.ClicK()

_CLIPTEXT=MyText


PasteButton.Click()

MyText = _CLIPTEXT

*************

_CLIPTEXT is the variable to get or set text in the clipboard under VFP...


:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform