Menu

#8 X-style copy/paste

open
None
3
2009-02-07
2007-01-07
No

Copying by selecting text, pasting with the middle mouse button, just as in X.

Discussion

  • Thomas ten Cate

    Thomas ten Cate - 2008-03-08

    Logged In: YES
    user_id=1679966
    Originator: YES

    There is no way to do this exactly the way X does, with the temporary and permanent clipboard, in a way that works with every application.

    Selecting text in a standard edit control generates only WM_MOUSEMOVE messages, so we'd have to trigger copying upon that. Copying from a standard edit control into a temporary buffer of our own would probably be possible, but that would not work with browsers, word processors, source code editors and pretty much everything else that is not plain and simple text. So this approach is more trouble than it's worth.

    It would also be possible to use the Windows clipboard for copying, by sending it a WM_COPY. That would allow you to copy from every window (even browsers and the like), but would destroy the clipboard contents upon every selection. Very undesirable.

    A compromise would be not to do copying at all, and send WM_PASTE upon a middle button click. Not extremely useful, but better than nothing. Would need a blacklist for applications like Blender, browsers, MS Word and such, that use the middle button for other things.

     
  • Thomas ten Cate

    Thomas ten Cate - 2008-03-08
    • priority: 6 --> 1
     
  • Thomas ten Cate

    Thomas ten Cate - 2008-03-08
    • priority: 1 --> 3
     
  • Thomas ten Cate

    Thomas ten Cate - 2008-06-22
    • milestone: --> 852786
     
  • Thomas ten Cate

    Thomas ten Cate - 2009-02-07
    • milestone: 852786 -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.