Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how create a basic shapes? (Read 1363 times)
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
how create a basic shapes?
May 3rd, 2011 at 8:18am
Print Post  
Hello
All this time i just work with custom nodes, no i need work a little with shapes,
Im trying to create rectangle shape and ellipse shape when form is clicked


form_Clicked


var Rectangle = new Rectangle();

var node = new DiagramNodeAdapter(form, Rectangle);

node.Bounds = new Rect(e.MousePosition, new Size(100, 100));

form.Nodes.Add(node);

node.HandlesStyle = HandlesStyle.Custom;

node.Selected = true;

Rhis create and empy node, not a rectangle shape.

What im doing wrong?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how create a basic shapes?
Reply #1 - May 3rd, 2011 at 8:43am
Print Post  
Hi,

Either use ShapeNodes, or set the Rectangle's Stroke and Fill properties.

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