[softwarelist] Re: Pasting from global clipboard problem (RO)

In message <995bb9194f.ewen@xxxxxxxxxxxxxxxxxxxx>, Ewen Pring <Ewen_Pring@xxxxxxxxxxxxx> writes
I've a number of documents/templates that have been around for years,
and which exhibit problems with pasting text from the global (but not
local) clipboard. Pasted text can appear in the wrong place (not at
the cursor), the wrong text frame, or not at all.

In RISC OS, at a programming level, the global clipboard works like dragging and dropping a file into a document.

Now I may have taken the analogy a bit far when I implemented it, I used the same code that I use when someone drops a file into a frame. The snag is perhaps in synthesising the "drop position".

You're expecting to paste to the caret, OP looks where the caret is and then pretends you've dropped a file there. Normally this works, but there may be cases where it does not.


--
David Pilling
email: david@xxxxxxxxxxxxxxxxxxx
  web: http://www.davidpilling.net
 post: David Pilling P.O. Box 22 Thornton Cleveleys Blackpool. FY5 1LR UK
  fax: +44(0)870-0520-941



Other related posts: