Page 1 of 1

ChartController in MDI application

Posted: Fri Oct 30, 2009 9:03 am
by 15654539
I have a ChartController in a mdichild form, it runs successfully, but when I send the chartController to be seen in the mdiParent with "ToolStripManager.Merge" command it doesn't make actions over the chart.

How can I see the chartController of a chart in a mdichild in the toolbar of the mdiparent?

Thanks in advance,

Re: ChartController in MDI application

Posted: Mon Nov 02, 2009 1:17 pm
by narcis
Hi wakeup,

Could you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.

Re: ChartController in MDI application

Posted: Mon Nov 02, 2009 4:37 pm
by 15654539
Here you have an example project attached.

If you click New in the tool bar it show a mdichild form and adds the ChartController to the main toolstrip but the chart controller buttons don't run.
I have used this method of transfer toolstrips from mdichild to mdiparent a lot of times without problems, but something is diferent in chartcontroller.

Thanks

Re: ChartController in MDI application

Posted: Thu Nov 05, 2009 10:15 am
by 10050769
Hello wakeup,

I belive,then investigated, there exist a general problem with ToolStripManager.Merge and not exlusive of TeeChart. I found many webs, that talk about similar problemes with using ToolStripsManager.

Some Links explain similar problems:


1.- First: http://www.tech-archive.net/Archive/Dot ... 01273.html
2.- Second: http://social.msdn.microsoft.com/Forums ... f61bd17dba (I Thinks that in the thread, comment a solution, that you want see four line).
3.- Third: http://jdixon.dotnetdevelopersjournal.c ... cation.htm.


On the other hand, We made a simple example with Winforms, that reproduce the same problem when use ToolStripManager.Merge and ToolStripManager.RevertMerge where demonstrated this problem isn't exlusive of TeeChart. I have added example, finally the post.

Please, you could check if in your application appears same problem? For reproduce the problem see next intruccions:

1.- You open the project, add your TeeChart.Net dll and execute
2.- You be able to see that appears correctly the ToolStrip, and works.
3.- Go to the code and comment line # 2 and uncommnet line #1
4.- Execute the program and push right button.
5.- You be able to see that image of ToolStrip not appears correctly and when you push buttons of toolStrip not works.

Finally, If you find a better solution of links said, would be better greatful , if you comment us.

I hope will helps.

Thanks,