Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Outline Draging of Nodes (Read 3123 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Outline Draging of Nodes
Dec 1st, 2008 at 4:47pm
Print Post  
Hi Stoyan

Is there a property  I can use to change the way nodes drag round the diagram canvas?  We have a rather large number of controls within nodes (a composite control containing many others) and moving this node round the screen is extremly laggy, we expect, due to the repainting of the child controls - other controls move fine. 
An outline drag would be our best case solution to this.


Many thanks


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Outline Draging of Nodes
Reply #1 - Dec 2nd, 2008 at 6:43am
Print Post  
Hi Paul,

You could implement some alternative appearance for your control and switch to it from the NodeStartModifying event handler, then switch back to the original appearance from the NodeModified handler. Or you could try setting control.Visibility = Collapsed from the StartModifying event - this should leave only the selection handles visible.

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



Posts: 128
Joined: Aug 15th, 2007
Re: Outline Draging of Nodes
Reply #2 - Dec 2nd, 2008 at 1:33pm
Print Post  
Hi Stoyan

I presume the re-setting of the visibility would be handled in the Diagram.NodeModified event as there is no NodeEndModifying event to compliment the StartModfiying (at least in the pre-v2 DLLs are are currently using)


Many thanks


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Outline Draging of Nodes
Reply #3 - Dec 2nd, 2008 at 3:18pm
Print Post  
Right, that's why I mentioned NodeModified in the first sentence there Wink

Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Outline Draging of Nodes
Reply #4 - Dec 2nd, 2008 at 11:41pm
Print Post  
lol!

That'll be me playing my dog-eared "Idiot" card again!

One thing we did notice was that if you click the node without moving, the NodeModified event doesn't not fire (which is fair enough) - is there a secondary event we should monitor to catch this case?


Cheers Stoyan


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Outline Draging of Nodes
Reply #5 - Dec 3rd, 2008 at 7:02am
Print Post  
Ok, I suppose you would have to handle the NodeClicked event to catch this.

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