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

How Cut/Copy to Clipboard ?

Status
Not open for further replies.

Pontelo

Programmer
Dec 18, 2001
80
BR
How can we Cut or Copy a text to Clipboard ?
Thanks
 
This sort of can be done with the OSLIB library, find that at the oasis, but it works rather buggy, I've used it on W98 and W2K, but the milage varies. Useually I can only put something in the clipboard once, after that, to copy a second string, I have to quit the app and restart...... s-)

Maybe sombode knows a beter solution?

HTH, TonHu
 
Using OSLIB is OK (i was already using OL_Yield() and didn´t notice that it has clipboard functions ! ).
Didn´t work with XP. If you want to put more than once, use OL_WinCBCopy() before OL_WinCBPaste(). In my tests worked OK.
Thank You.
 
Thanks for ur tip, I'll test that out later.

In W2K/XP there is ofcourse the option to switch to 'Windowed'-mode for your clipper app, and then select some text with the mouse (left button) inside the visible area, and somewhere else, inside a memo or entry field, use right-click to paste that block (over 1 line is enter-separated) back into the app (rather awkward to explain, you'll have to see/try it and you'll understand). Inside a memo should be harmless, just try it.

HTH, TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top