Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Shape RoundedRectangle is not rounded (Read 4289 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Shape RoundedRectangle is not rounded
Mar 11th, 2010 at 9:30am
Print Post  
Hello Team,

I am using RoundedRectangle in my application and found that when width is greater than the height,  corner of the shape is not rounded.

it is somewhat between round and oval.

can you suggest me how can i achive rounded corners for a shape when width is greater than height

for ex: take width=300 and height=100 for RoundedRectangle, you can observe this issue.

Thanks,
-KayKay
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape RoundedRectangle is not rounded
Reply #1 - Mar 11th, 2010 at 9:47am
Print Post  
Hello KayKay,

We haven't implemented true rounded-rect support in the Shape class yet. We'll try to add this next week.

At this time you can replace the path in the ShapeNode template with a Rectangle and use its RadiusX and RadiusY properties.

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


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Shape RoundedRectangle is not rounded
Reply #2 - Mar 11th, 2010 at 10:00am
Print Post  
Thanks for the quick response...
but i am really newbee in the world of mindfusion diagramming...

my question may sound a pretty basic one but can you help me out..

how can i replace the Shape template with the rectangle and specify radiusX and radiusY
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape RoundedRectangle is not rounded
Reply #3 - Mar 11th, 2010 at 10:46am
Print Post  
Do you need to use any other shapes, or all nodes will be rounded rectangles?
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Shape RoundedRectangle is not rounded
Reply #4 - Mar 11th, 2010 at 11:49am
Print Post  
I need some other shapes..
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape RoundedRectangle is not rounded
Reply #5 - Mar 11th, 2010 at 3:14pm
Print Post  
Well, it's easier to fix the shape than create conditional templates. Check the RoundRect in this version:

https://mindfusion.eu/_beta/diaglite14_roundrect.zip

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


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Re: Shape RoundedRectangle is not rounded
Reply #6 - Mar 17th, 2010 at 12:53pm
Print Post  
Hi Stoyo

How one can use this RoundedRectangle shape ?

-Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape RoundedRectangle is not rounded
Reply #7 - Mar 17th, 2010 at 2:05pm
Print Post  
Hi Rajesh,

You can set ShapeNode.Shape = Shapes.RoundRect. If you need to use a rounded rectangle as outline of your custom Shape, you can do that by setting the outline array to one that contains a single RoundRectangleTemplate object.

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