Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Pasting unconnected links (Read 1697 times)
lindborg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 30th, 2008
Pasting unconnected links
Nov 28th, 2008 at 8:27am
Print Post  
I have been looking on the CopyPaste sample solution provided from Mindfusion.

The sample doesn't allow copying and pasting unconnected links. Why is that when i'ts possible to draw unconnected links?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Pasting unconnected links
Reply #1 - Nov 28th, 2008 at 8:42am
Print Post  
What version of the control are you using? The CopyPaste sample calls the public bool PasteFromClipboard (
    float dx,
    float dy,
    bool unconnectedLinks
) method, which allow pasting unconnected links. I've added diagram.AllowUnconnectedLinks = true; to the constructor and copy/paste for such links works fine from what I can see.

Stoyan
  
Back to top
 
IP Logged
 
lindborg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 30th, 2008
Re: Pasting unconnected links
Reply #2 - Nov 28th, 2008 at 8:57am
Print Post  
Hello Stoyo...

I used the method where the items is copied to the DiagramItemCollection called clipboard.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Pasting unconnected links
Reply #3 - Nov 28th, 2008 at 10:18am
Print Post  
This sample was created at a time when there weren't built-in clipboard methods (clipCopy was used for the Copy/Paste buttons too) , but we left it for the export selection code. Is exporting the selection what you need to use? Now you can implement this using the CopySelection and PasteSelection methods of Diagram to clone the selected items into a second Diagram, and then save that diagram into a file.

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