Page 1 of 1

Adding a button to a chartcontroller?

Posted: Sun Jul 06, 2008 3:19 am
by 13046874
Dear Supporter,
How do I add a button to a chartcontroller?
How do I add an image to that button?
A VB.Net example would be great.
Cheers
Francis

Posted: Mon Jul 07, 2008 7:25 am
by narcis
Hi FP_Oz,

It's much easier doing it at designtime. Just click on the ChartController component, click the "Add ToolStripButton" icon and select a button there. Now you'll have a new button in project's properties window, you can choose the image to use there.

Hope this helps!

Posted: Mon Jul 07, 2008 7:57 pm
by 13046874
Hi Narcis,
Thanks for your anwer but it does not really solve my problem. I use one controller for an array of charts and need to modify the buttons based on which graph is selected during runtime.

If the buttons on the controller are not assessible anymore (they were accessible on the Ax component), would it be possible to put on the 'to-do' list to add a method to add/remove buttons from the toolstrip collection?

Cheers
Francis

Posted: Tue Jul 08, 2008 7:40 am
by narcis
Hi Francis,

They are also accessible in the .NET version as you can see in the examples at All Features\Welcome !\Components\ChartController\Custom Buttons in the features demo, available at TeeChart's program group.