Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Some queries (Read 10654 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #15 - Mar 6th, 2009 at 9:19am
Print Post  
2) This version adds Pan as possible value for Diagram.Behavior:

https://mindfusion.eu/_beta/wpfdiag_pan.zip

We have redesigned the mouse input handling system almost from scratch to make it easier to make such changes in the future. We tested with all behavior values and input combinations we could think of, but still we might have missed something, so let me know if you see any problems with the updated version.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #16 - Mar 6th, 2009 at 9:23am
Print Post  
2) This version adds Pan as possible value for Diagram.Behavior:

https://mindfusion.eu/_beta/wpfdiag_pan.zip

We have redesigned the mouse input handling system almost from scratch to make it easier to make such changes in the future. We tested with all behavior values and input combinations we could think of, but still we might have missed something, so let me know if you see any problems with the updated version.

Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some queries
Reply #17 - Mar 6th, 2009 at 10:18am
Print Post  
Thanks, Yes the panning stuff looks fine.

Please suggest about following queries:

1) Say we do not want link creation until user select the type of link present in a toolbar. So when user has not chosen any link creation button then he can only select and move the nodes in the diagram. 

What we want here is when the node is selected the node movement cursor (the four arrow one) which currently appears only at the center of the node should come for whole node region.

As per you suggestion we set node.HandlesStyle = EasyMove but it is causing a circle to appear at center of the node and there the movement cursor does not appear. And we need that at every point on the selected node the movement cursor should appear so that it can be moved. What to do in this case.

Secondly, can you tell me how to achieve this by custom behavior object.

2) I want to have an image on my decision shaped node for which i have written following code:

ShapeNode node = new ShapeNode(diagram);
          node.Bounds = new Rect(new Point(100, 100), new Size(50, 50));
          node.Shape = Shapes.Decision;
          Uri uri = new Uri(@"..\..\Test.png", UriKind.RelativeOrAbsolute);
          node.Image = new BitmapImage(uri);
          node.ImageAlign = ImageAlign.Center;

However, i want to allow my image to extend beyond node boundaries (the decision shape) but currently it is getting clipped of with the node boundaries. How to prevent it and allow image to extend.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #18 - Mar 9th, 2009 at 10:46am
Print Post  
https://mindfusion.eu/_beta/wpfdiag_clipimage.zip

We have added the ClipImage property to ShapeNode. Set it to false to disable image clipping.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some queries
Reply #19 - Mar 9th, 2009 at 11:05am
Print Post  
Great, looks good.

Just one thought - the node boundaries are coming up on the image, we want that the image remains on top of the node and thus will hide the node boundaries.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #20 - Mar 9th, 2009 at 2:53pm
Print Post  
You might assign a pen with transparent color to the ShapeNode; that will hide the boundaries completely.

Another possibility, if you choose to use the AttachTo method to display the labels in separate nodes as we discussed in another thread, you might as well do the same for the image. Create a new node, load the image inside it and call imageNode.AttachTo(mainNode, ...). To prevent the user from selecting and moving the image, set it Locked = true. If you are using any of the automatical layout functions, also enable its IgnoreLayout property.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some queries
Reply #21 - Mar 10th, 2009 at 6:49am
Print Post  
Thanks for the reply.

Please suggest about the Query number 1) too.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #22 - Mar 10th, 2009 at 8:40am
Print Post  
You could set Behavior = DrawShapes to prevent users from creating new links, and handle the LinkSelecting and LinkModifying validation events to prevent modification of links.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some queries
Reply #23 - Mar 10th, 2009 at 8:55am
Print Post  
Hi,

The problem here is different :

What we want here is when the node is selected the node movement cursor (the four arrow one) which currently appears only at the center of the node should come for whole node region.

As per thesuggestion we set node.HandlesStyle = EasyMove but it is causing a circle to appear at center of the node and there the movement cursor does not appear. And we need that at every point on the selected node region the movement cursor should appear so that it can be moved. What to do in this case.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some queries
Reply #24 - Mar 10th, 2009 at 12:31pm
Print Post  
Try with HandlesStyle = MoveOnly.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint