Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Can't view or change control (Read 9171 times)
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Can't view or change control
Sep 17th, 2010 at 7:50pm
Print Post  
Background: Last Friday my development machine's hard drive decided to completely fail and as a result I ended up loading my OS from scratch onto a new drive. I had previously been using WinXP and since I was loading it fresh anyway, I installed Win7 Ultimate x64 instead of XP.

Since then, one of the programs I maintain that uses FlowchartX 3.2.1 (I know, old!) has had a very odd issue. I can build the project with no errors, the program runs perfectly fine, etc. The issue is that the control is not visible at all, but all of the code steps through just fine adding the boxes and arrows and such.

I think the issue is that the control is sized at 0x0 for some reason. You can see in this image that when I select the flowchart object from the document outline view that the resize handles become visible but are mashed together (the 4 boxes right in the center of the image):



It does this regardless of whether I use VS2005, VS2008 or VS2010. I also cannot go into the control's property pages and manually change the size, it immediately reverts back to 0,0. I've tried adding and readding the references to no avail as well.

Does anyone have ideas on what in the world is going on?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't view or change control
Reply #1 - Sep 18th, 2010 at 5:33am
Print Post  
Can you import the FlowchartX type library successfully into a new project, and add a flowchart instance to the form? Can you open a flowchart using the ActiveX Test Container tool?
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #2 - Sep 20th, 2010 at 2:51pm
Print Post  
Stoyo wrote on Sep 18th, 2010 at 5:33am:
Can you import the FlowchartX type library successfully into a new project, and add a flowchart instance to the form?


If I create a new project and try to add a FlowchartX object, it does the same thing...the FlowChartX object shows up with size 0,0 at the top left corner of the form.

Stoyo wrote on Sep 18th, 2010 at 5:33am:
Can you open a flowchart using the ActiveX Test Container tool?


Not sure what the test container tool is, but if I run the "Run Demo" program supplied with the FlowChartX install the demo flowcharts do show up and can be manipulated just fine.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't view or change control
Reply #3 - Sep 20th, 2010 at 5:30pm
Print Post  
VS2005 has a Tools / ActiveX Control Test Container menu item. What kind of project template are you using? It works fine for me in a dialog-based MFC project on Windows 7 system.
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #4 - Sep 20th, 2010 at 5:53pm
Print Post  
Hmm, I don't see an option for ActiveX Control Test Container in any of the VS 2005, 2008 or 2010 menus or toolbars. What version of VS are you using? I'm using Professional/Professional/Premium of each version, respectively.

It's just a standard WinForms project template, nothing fancy!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't view or change control
Reply #5 - Sep 20th, 2010 at 6:10pm
Print Post  
You might had to select Windows SDK Tools or something similar during VS setup for this tool to appear. Anyways this worked for me with the WinForms template too. Did you install FlowchartX using its installer after the crash, or just copied and registered the dll file?
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #6 - Sep 20th, 2010 at 6:13pm
Print Post  
I used the FlowChartX installer. I've also re-registered the DLL manually several times to see if that was the issue, but no change.

I'll see if I can add additional options to my VS installations, I'm pretty sure I had everything checked though. Smiley
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #7 - Sep 20th, 2010 at 9:00pm
Print Post  
Apparently the ActiveX Test Container tool was removed from VS as of 2008, no wonder I couldn't find it.

New projects in 2008 and 2010 result in the same behavior with the control.

I also tried running the installers for older versions of FlowChartX that we have sitting around and the same thing happens regardless of version.

Thinking that there might be a permissions issue, I gave my user full permission to the flowchart.dll as well but no change in behavior occurred.

This is driving me crazy.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't view or change control
Reply #8 - Sep 21st, 2010 at 9:07am
Print Post  
What happens if you resize it at runtime, e.g. by setting fcx.Size = new Size(600, 400)?
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #9 - Sep 21st, 2010 at 3:06pm
Print Post  
If I change the Size property from either the control's property page or at runtime then Visual Studio 2008 and 2010 crash. This project was recently converted to 2010 but no other changes were made, hence why I can load it in both versions for now.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't view or change control
Reply #10 - Sep 21st, 2010 at 6:08pm
Print Post  
I got the empty rectangle too with v3.2.1 under VS2008. It was ok in VS2005 I tried earlier though, which runs using the 'as admin' option as per the compatibility information displayed on first run. Anyway we cannot support a 5-year old version of the control anymore; you could either use it with VS2005, or move to a newer FlowchartX version - 4.3.1 seems to work fine.
  
Back to top
 
IP Logged
 
kettch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 17th, 2010
Re: Can't view or change control
Reply #11 - Sep 21st, 2010 at 6:49pm
Print Post  
Okay, at least you were able to reproduce it on your end. I was hoping it was not just something broken in my environment, especially since it was such a fresh setup.

I totally understand not being able to support this version, I fight that battle every day here with customers running super old versions of our software too. I'll get the authorization from the powers-that-be for the upgrade to the newest version.

Thanks for your help!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint