Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AttachProportional (Read 1931 times)
areddan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
AttachProportional
Feb 17th, 2009 at 4:14am
Print Post  
Is there any way to "update" a group (or diagramnode) after I've attached items to it via this function?

The problem is it doesn't update those shapenodes I attach to be the correct size/position until I try to move the parent node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AttachProportional
Reply #1 - Feb 17th, 2009 at 8:30am
Print Post  
Set parentNode.Bounds = parentNode.Bounds to force the group to update.

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


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
Re: AttachProportional
Reply #2 - Feb 18th, 2009 at 12:17am
Print Post  
This works, if the parent can be cast to a node. What if it can't? Is there any way to update it via generic DiagramItem?
  
Back to top
 
IP Logged
 
areddan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
Re: AttachProportional
Reply #3 - Feb 18th, 2009 at 12:27am
Print Post  
Is it even an issue if the parent item is a link?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AttachProportional
Reply #4 - Feb 18th, 2009 at 8:33am
Print Post  
Yes, it seems the control expects the parent to be a node in that case. The supported scenarios are the ones for which you can see DiagramNode.AttachTo overloads.

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