Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Paste to mouse position (Read 1540 times)
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Paste to mouse position
Dec 2nd, 2008 at 2:26pm
Print Post  
Hi!

Is there an easy way to paste from clipboard to the mouse position (instead of having to calculate the position of the cut/copy node compared to the mouse to have a delta)?

Thanks,
Marie
« Last Edit: Dec 9th, 2008 at 2:52pm by marie »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Paste to mouse position
Reply #1 - Dec 2nd, 2008 at 3:20pm
Print Post  
Hi Marie,

Try the method from this post:
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=122710007...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Paste to mouse position
Reply #2 - Dec 2nd, 2008 at 4:09pm
Print Post  
Thanks! I'll try it.

Is there a way to get the item(s) stored in the clipboard? Because if the selection changed before pasting an element, the position will be wrong...

Thanks!
Marie
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Paste to mouse position
Reply #3 - Dec 2nd, 2008 at 6:33pm
Print Post  
After PasteFromClipboard, the selection should contain the pasted items. Call immediately the MoveSelection method, and it will move just these pasted items.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint