Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ControlNode (Read 1120 times)
rnpayet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 14th, 2011
ControlNode
Jun 10th, 2012 at 10:57am
Print Post  
Hi
I am having issues with maintain the bounds size of the ControlNode when the hosted control changed

any ideas?

Ryan
  

Colapsed_001.png (Attachment deleted)
Expanded_001.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ControlNode
Reply #1 - Jun 11th, 2012 at 8:14am
Print Post  
Hi,

When you set ControlNode.Control, the node assigns its Bounds size converted to pixels to the Size property of hosted controls. It seems your control ignores the assigned size, so you'll probably have to set node.Bounds to reflect the control's size. Use the DiagramView.ClientToDoc(Rectangle) method to find the node's size that will fit the control.

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