Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic RoundRectangle problem (Read 1944 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
RoundRectangle problem
Aug 29th, 2007 at 9:43am
Print Post  
Hello,

when I use the following code

Code
Select All
public static ElementTemplate[] elements = new ElementTemplate[]
{
  new RoundRectangle(0, 0, 100, 100, 6)
}; 



I get an error that this constructor has not 5 arguments. I copied the code from the ShapeDesigner.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RoundRectangle problem
Reply #1 - Aug 29th, 2007 at 10:52am
Print Post  
Hello,

Did exactly that code appear in the designer? You must use the RoundRectangleTemplate class from the MindFusion.Diagramming namespace. There is a RoundRectangle class in the MindFusion.Tools.ShapeDesignerCtrl namespace, but you can't use it in shape definitions. Anyway replacing RoundRectangle with RoundRectangleTemplate should fix the error.

Stoyan
  
Back to top
 
IP Logged
 
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Re: RoundRectangle problem
Reply #2 - Aug 30th, 2007 at 3:48am
Print Post  
Yes this is the code from the ShapeDesigner:

Code
Select All
// C# ShapeTemplate definition
   new Shape(

 new ElementTemplate[]

 {


new RoundRectangle(0, 0, 100, 100, 6)

 },

 new ElementTemplate[]

 {

 },
 null, FillMode.Winding,   "test" ); 



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