Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Setting the shape of a box in Javascript (Read 3138 times)
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Setting the shape of a box in Javascript
Sep 21st, 2007 at 11:16am
Print Post  
Hi everyone,

I know that setting the shape of a box in C# is possible by using the Box.Shape property. It's been a long time I've looked for doing this in Javascript, without any success. Is this only possible ? Thanks a lot for your replies !

[EDIT] Sorry, I wanted to post in the NetDiagram section, if a moderator could move this topic it would be great, thx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting the shape of a box in Javascript
Reply #1 - Sep 21st, 2007 at 11:39am
Print Post  
Hi,

Use the FlowChartApplet.getScriptHelper().shapeFromId(String shapeId) method to get a predefined Shape object. Then pass it as an argument to the Box.setShape() method.

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



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: Setting the shape of a box in Javascript
Reply #2 - Sep 21st, 2007 at 11:50am
Print Post  
That's awsome, it works great ! Thanks a lot. Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint