Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cut & Paste (Read 1985 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Cut & Paste
May 9th, 2007 at 6:07am
Print Post  
Hello,

the following problem occured to me while implementing cut & paste to my program. When I cut a Box to the Clipboard, all Boxes who are AttachedTo this Box are also cut from the diagram. But when I paste them back to the diagram, only the master box is pasted, while attached Boxes are not. Is this the intended behavior?

Best regards,

Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cut & Paste
Reply #1 - May 9th, 2007 at 6:13am
Print Post  
Hello,

Actually the attached items are not placed in the clipboard, but they are probably deleted because of the Group.AutoDeleteItems property. There is a

bool CopyToClipboard(bool copy, bool groups);

method you could use to copy a whole group. Unfortunately our developers forgot to implement a similar CutToClipboard override. To workaround that, call CopyToClipboard(true, true), and then delete all selected items, instead of calling CutToClipboard.

Best regards,
Stoyan
  
Back to top
 
IP Logged
 
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Re: Cut & Paste
Reply #2 - May 9th, 2007 at 6:38am
Print Post  
Will this be fixed in further releases?

Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cut & Paste
Reply #3 - May 9th, 2007 at 6:51am
Print Post  
It will be fixed.

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