Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Paste w/ Offset (Read 2033 times)
Gil McNeill
Guest


Paste w/ Offset
Feb 3rd, 2006 at 1:47pm
Print Post  
Hello. Is there a way to have the items you are pasting from the clipboard offset from the items they were copied from?

Currently the pasted items are directly on top of the items they were copied from and it's hard to tell that the paste was successful.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Paste w/ Offset
Reply #1 - Feb 3rd, 2006 at 2:11pm
Print Post  
Hi,

It seems the only way to do that is to handle the ItemsPasted event and offset the items from there.

You would have to enumerate all boxes, check if their ZIndex is larger than the one passed as a parameter to ItemsPasted, and if it is larger - call the box.MoveTo method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint