Adding a button to a chartcontroller?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
FP_Oz
Newbie
Newbie
Posts: 22
Joined: Mon Oct 01, 2007 12:00 am

Adding a button to a chartcontroller?

Post by FP_Oz » Sun Jul 06, 2008 3:19 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 07, 2008 7:25 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

FP_Oz
Newbie
Newbie
Posts: 22
Joined: Mon Oct 01, 2007 12:00 am

Post by FP_Oz » Mon Jul 07, 2008 7:57 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 08, 2008 7:40 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply