Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic VS 2010 - Wonīt get any draw area (Read 3969 times)
moelski
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Feb 28th, 2011
VS 2010 - Wonīt get any draw area
Feb 28th, 2011 at 12:46pm
Print Post  
Hi !

I just downloaded the trial to test this component. But I canīt get it working.

Iīve added a DiagramView and a Diagram to my form. Diagram property for DiagramView is set to the new diagram.

But I get no area where I could draw any Shapes.

I took a look into the demo "Event Logger". Here I can see a gray area which coms from the DiagramView.
So what I am doing wrong?

This is what I miss in my app:



Greetings
Dominik
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VS 2010 - Wonīt get any draw area
Reply #1 - Feb 28th, 2011 at 1:23pm
Print Post  
Hi!

Have you placed the view directly on the form or inside some panel? If you call MessageBox.Show(diagramView.Bounds.ToString()), what coordinates does it show?

Stoyan
  
Back to top
 
IP Logged
 
moelski
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Feb 28th, 2011
Re: VS 2010 - Wonīt get any draw area
Reply #2 - Feb 28th, 2011 at 1:37pm
Print Post  
Quote:
Have you placed the view directly on the form

Correct

Quote:
or inside some panel

I will use it later within some Tabs. But actually I use it on a blank form.

Quote:
what coordinates does it show?

X=0 Y=0 W=256 H = 256
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VS 2010 - Wonīt get any draw area
Reply #3 - Feb 28th, 2011 at 1:51pm
Print Post  
So, the view is there on the upper left of the form but you see nothing... Could you check if you haven't disabled its Visible property by chance?

Stoyan
  
Back to top
 
IP Logged
 
moelski
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Feb 28th, 2011
Re: VS 2010 - Wonīt get any draw area
Reply #4 - Feb 28th, 2011 at 1:54pm
Print Post  
Quote:
disabled its Visible property

No. Enable and Visible is TRUE.

Try to change it to False and back to True. But wonīt change anything  Sad
  
Back to top
 
IP Logged
 
moelski
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Feb 28th, 2011
Re: VS 2010 - Wonīt get any draw area
Reply #5 - Feb 28th, 2011 at 2:21pm
Print Post  
got a solution:

It seems VS did not detect the DiagramView as a control to place it on the form, but only as component and placed it on the tray. If you add the view manually at the end of InitializeComponent, the view appears both in design and runtime. It should look like this -

this.Controls.Add(this.button1);
this.Controls.Add(this.diagramView1);
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VS 2010 - Wonīt get any draw area
Reply #6 - Mar 1st, 2011 at 8:01am
Print Post  
Yes, that works but then you cannot select and move the DiagramView control in the form. Could you try this version?

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

It will fall back to the default WinForm.ControlDesigner class if it can't load the diagramming.winforms.design assembly for some reason. The only drawback if that happens is that you will have to add a Diagram instance manually and associate it with the view. Otherwise DiagramViewDesigner adds it automatically once you drop a DiagramView on the form.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
moelski
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Feb 28th, 2011
Re: VS 2010 - Wonīt get any draw area
Reply #7 - Mar 3rd, 2011 at 9:03am
Print Post  
Hi !

Quote:
Could you try this version?

Just copy the files into the
.:\...\FlowChart\VS2010 (.NET 4.0)
folder ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: VS 2010 - Wonīt get any draw area
Reply #8 - Mar 3rd, 2011 at 9:29am
Print Post  
Yes, or remove the old version and install this one:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_news;action=display;num=129909480...

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