Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Width of ShapeNode (Read 2103 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Width of ShapeNode
Dec 2nd, 2012 at 10:23am
Print Post  
I define a object of ShapeNode, and
1. This node can not move
2. Only can resize at bottom side
3. MeasureUnit of Diagram is dispaly

So, if width of the object is too small such 15, then
user can not resize it. Base on my experience, the minimun value is 17. Is there
any way to solve this problem?

By the way if MeasureUnit is millimeter then it can work.
Thanks a lot.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Width of ShapeNode
Reply #1 - Dec 2nd, 2012 at 1:22pm
Print Post  
Set the MinimumNodeSize property to a value smaller than your nodes' fixed width.

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


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: Width of ShapeNode
Reply #2 - Dec 3rd, 2012 at 12:37am
Print Post  
Stoyo wrote on Dec 2nd, 2012 at 1:22pm:
Set the MinimumNodeSize property to a value smaller than your nodes' fixed width.

I hope that helps,
Stoyan


Thanks for your reply. Unfortunately it does not work. I think the width is not a key, I can set any width and resize width. The point is if width too small I can not resize node at bottom side. The three handle rectangles stay together closely, looks that's why cause it can not work.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Width of ShapeNode
Reply #3 - Dec 3rd, 2012 at 3:41pm
Print Post  
Check if MinimumNodeSize isn't set to a larger value later, or if you don't have a NodeModifying handler cancelling the operation. This works in my test project with everything else having default values:

Code
Select All
private void Form1_Load(object sender, System.EventArgs e)
{
	diagram.MeasureUnit = GraphicsUnit.Display;
	diagram.MinimumNodeSize = new SizeF(1, 1);

	var node = diagram.Factory.CreateShapeNode(50, 50, 15, 15);
	node.EnabledHandles = AdjustmentHandles.ResizeBottomCenter;
} 



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


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: Width of ShapeNode
Reply #4 - Dec 11th, 2012 at 11:00am
Print Post  
Excellent, This is what I want. Thanks a lot
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint