Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic overview issue (Read 6324 times)
Vangelis Komninos
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: May 3rd, 2012
overview issue
May 30th, 2012 at 8:07am
Print Post  
Hi !
We have the professional edition so I try to use overview window. I am creating a form and 2 activex controls:
AxFlowChart1 and AxOverview1
Then I am trying to connect those 2 like: AxOverview1.Document=AxFlowChart1

The system returns with error since they belong to different types. Could you give me some clue ? an example in VB ?

Thank you in advance
Vangelis Komninos
Selonda S.A.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview issue
Reply #1 - May 30th, 2012 at 10:22am
Print Post  
Hi,

In VB it's enough to set overview.Document = flowchart. If the environment you are using creates some wrapper classes for the controls, try assigning the wrapped COM pointer to the Document property, e.g. in MFC you would get it through the wrapper's GetControlUnknown() method.

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


I Love MindFusion!

Posts: 7
Joined: May 3rd, 2012
Re: overview issue
Reply #2 - May 30th, 2012 at 10:47am
Print Post  
Hi again,

Unfortunately when I assign :
AxOverview1.Document = AxFlowChart1
I'm getting the following error:
Unable to cast object of type 'AxFLOWCHARTLib.AxFlowChart' to type 'FLOWCHARTLIB.FlowChart'.

Am I doing something wrong ?

Best Regards
Vangelis Komninos
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview issue
Reply #3 - May 30th, 2012 at 10:53am
Print Post  
Hi,

I suppose 'AxFLOWCHARTLib.AxFlowChart' is the wrapper class created by your environment while 'FLOWCHARTLIB.FlowChart' is the actual COM interface of the flowchartx control. VB6 can convert between these automatically; if the Gupta system you are using cannot, see if there isn't some 'FLOWCHARTLIB.FlowChart' member exposed by the 'AxFLOWCHARTLib.AxFlowChart' wrapper and assign it to Document.

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


I Love MindFusion!

Posts: 7
Joined: May 3rd, 2012
Re: overview issue
Reply #4 - May 30th, 2012 at 11:05am
Print Post  
Hi again,

In fact I experimenting with VB before trying with Gupta. So far I cannot make it work in VS 2008. What I have done so far:
1. Create a VB project
2. Add the Control to Form1 (fieldname is AxFlowChart1)
3.Add the overview Control to Form1 (fieldname is AxOverview1)
4.The system automatically add in References 2 libs (AxFLOWCHARTLib and FLOWCHARTLib)
5. In a button I assing: AxOverview1.Document=AxFlowChart1

When I run, I get the error I previously said.


Best Regards
Vangelis Komninos
  
Back to top
 
IP Logged
 
Vangelis Komninos
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: May 3rd, 2012
Re: overview issue
Reply #5 - May 30th, 2012 at 11:30am
Print Post  
Stoyan I think I found it.
it is AxOverview1.Document = AxFlowChart.GetOcx

Thanks again for your prompt help. see you in Gupta problem soon  Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview issue
Reply #6 - May 30th, 2012 at 11:39am
Print Post  
Ah, so that was VB.NET Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint