Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramView DrawShape (Read 2917 times)
ddol
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Nov 8th, 2013
DiagramView DrawShape
Nov 8th, 2013 at 8:44am
Print Post  
I'm testing with the trial version of Windows Forms.

If the Behavior property of DiagramView is set to DrawShape, when we draw small areas, seem that you have a minimum distance when drawing the node.
What property should I change for a more sensitive drawn?
And, what property should I change for nodes are transparent? (without any shading, to see the background image)

Thanks for advanced
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramView DrawShape
Reply #1 - Nov 8th, 2013 at 10:42am
Print Post  
Set smaller Diagram.MinimumNodeSize value to allow drawing smaller nodes.

Set node.Brush to a SolidBrush(Color.Transparent) to remove the fill of individual nodes, or change Brush to null in the current theme's style if you need that for all nodes.

You might also want to remove shadows by setting Diagram.ShadowsStyle = None.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ddol
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Nov 8th, 2013
Re: DiagramView DrawShape
Reply #2 - Nov 8th, 2013 at 11:27am
Print Post  
The problem is not draw small nodes.
diagramView.Diagram.MinimumNodeSize.Height = 0.0;
diagramView.Diagram.MinimumNodeSize.Width = 0.0;


The problem is in the redraw with the cursor or moving a node. It seems as exists defined minimum distance to draw or moving when distances are very short.
Is there any property to change that?

Is possible to move nodes with keys.Up, keys.Down, keys.Left, keys.Rigth??

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramView DrawShape
Reply #3 - Nov 8th, 2013 at 11:58am
Print Post  
Set it to a small size, but not zero:
diagramView.Diagram.MinimumNodeSize = new SizeF(0.01f, 0.01f);

Zero size is the default, however the control enforces a MeasureUnit-independent one millimeter size when at default value.

See http://mindfusion.eu/Forum/YaBB.pl?num=1323665629/1#1 for moving with arrow keys.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ddol
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Nov 8th, 2013
Re: DiagramView DrawShape
Reply #4 - Nov 12th, 2013 at 8:06am
Print Post  
MinimumNodeSize doesn't solve the problem.
The property to which I referred is diagram.AlignToGrid = false.

Thanks for everything
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramView DrawShape
Reply #5 - Nov 12th, 2013 at 2:04pm
Print Post  
Right, I forgot about that. You might also make the alignment grid smaller by setting the GridSizeX and GridSizeY properties.

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