Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can set ControlHost border to 0? (Read 2048 times)
LongRunner
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 27th, 2006
Can set ControlHost border to 0?
Nov 27th, 2006 at 4:09am
Print Post  
Dear All,
I am a beginner on The FlowChart.NET Pro (version 4.2.1). I got a problem on it.
I created two ControlHost, one in X = 0, Y = 0, Width = 200, Height = 200, the second in X = 200, Y = 0, Width = 200, Height = 200,
And I found that a gap is between the two ControlHost so that they cannot touch each others on the display.
I guess some spaces are spent on the border of the ControlHost.

How can I set this border to zero in this version?

Thanks.
  
Back to top
 
IP Logged
 
LongRunner
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 27th, 2006
Re: Can set ControlHost border to 0?
Reply #1 - Nov 27th, 2006 at 4:10am
Print Post  
Code attach:


private void button1_Click(object sender, System.EventArgs e)
{
ControlHost ch = this.fc.CreateControlHost(0, 0, 200, 200);

PictureBox pic = new PictureBox();
pic.BackColor = Color.Black;
pic.Enabled = false;
ch.Control = pic;
}

private void button2_Click(object sender, System.EventArgs e)
{
ControlHost ch = this.fc.CreateControlHost(200, 0, 200, 200);

PictureBox pic = new PictureBox();
pic.BackColor = Color.Black;
pic.Enabled = false;
ch.Control = pic;
}
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can set ControlHost border to 0?
Reply #2 - Nov 27th, 2006 at 6:30am
Print Post  
Hi,

There is always some empty space left between the ControlHost.BoundingRect border and the control itself. That's to let you select ControlHost nodes by clicking in this area, for situations in which FlowChart.NET cannot detect mouse-clicks on the control.

At this time that's hard-coded, but we will add a new property to the 4.2.2 release that will let you change the size of that border.

Stoyan
  
Back to top
 
IP Logged
 
LongRunner
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 27th, 2006
Re: Can set ControlHost border to 0?
Reply #3 - Nov 28th, 2006 at 1:16am
Print Post  
ic. Thanks for your reply.

However, would you mind build a version to me that fixed this problem? Because i use it urgent.

And when does the 4.2.2 release deploy?

Thanks a lot.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can set ControlHost border to 0?
Reply #4 - Nov 28th, 2006 at 6:34am
Print Post  
We are releasing it in a couple of days. I will send you our daily builds if it's more urgent than that.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint