Page 1 of 1

Adding TeePreviewPanel at Design Time

Posted: Tue May 15, 2007 7:58 pm
by 9532498
I'm using Visual C++ and TChart ActiveX Control Version 7. I created a dialog and added a TeePreviewPanel at Design Time. I used the Class Wizard to associate a C++ class with the dialog. Then I tried to associate a member variable of that class with the PreviewPanel. I get an error message saying the following
"The ActiveX Control TeeChart Preview Panel v7 has not been inserted into the project. Developer studio will do this now and generate a C++ wrapper class for it"

I have already added the CTeePreviewPanel class to my Visual C++ project. I've also registered the teechart7.ocx component. I'm able to add the TCharts easily at both design and runtime.

So I'm not sure what's going on with the Preview Panel.

Posted: Wed May 16, 2007 7:46 am
by narcis
Hi nbp,

So, after Visual Studio show you that message, did the application run fine or there was any problem with TeePreviewPanel?

Thanks in advance.

Posted: Wed May 16, 2007 4:09 pm
by 9532498
I could not add the variable associated with TeePreviewPanel.

I tried a workaround - added the code manully to the .cpp and .h file. Then it worked fine.

The problem is that Visual Studio is not associating the class CTeePreviewPanel (already added to the project) with the component "TChart Preview Panel V7"

Posted: Thu May 17, 2007 8:11 am
by narcis
Hi nbp,

Have you tried using ClassWizard and add the new variable for the PreviewPanel at the Member Variables tab? It works fine for me here using v7.0.1.4. Which TeeChart version are you using?