Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Tk Drag and Drop Between Applications

by blueberryCoffee (Scribe)
on Dec 15, 2004 at 10:40 UTC ( #414982=note: print w/replies, xml ) Need Help??


in reply to Tk Drag and Drop Between Applications

I don't know how this can be done but a simple workaround could be to use the clipboard to store what you want and then paste it into the other app. Make a popup window (or a button)that will grab your current selection and convert it (if it's a listbox or a set of widgets) into text usable by the other app. Then for windows use Win32::Clipboard to fill the clipboard.
  • Comment on Re: Tk Drag and Drop Between Applications

Replies are listed 'Best First'.
Re^2: Tk Drag and Drop Between Applications
by Courage (Parson) on Dec 15, 2004 at 19:11 UTC
    Breaking user's clipboard will frustrate them and sometimes make them mad.

    Also, there is an obvious place for race condition here: imagine two instances of same applications waiting for drag-drop from each other (using this d-n-d technique), clipboard will become invalid just on the half-way to a target.

    Best regards,
    Courage, the Cowardly Dog

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2023-01-29 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?