Help button in Chart Editor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Help button in Chart Editor

Post by asupriya » Wed Sep 01, 2010 1:35 am

Hi

How can i hide the 'help' button in the charteditor? With following code, I get a export dialog that has 'Help' button. It popsup Teechart help and is not what we would like our users to see. How can we turn off this button.

the code is as follows:

Code: Select all

Dim editor1 As New Steema.TeeChart.Editor
            editor1.Chart = HighlightedGraphPanel
            editor1.HighLightTabs = True
            editor1.HideTabs = New Steema.TeeChart.Editors.ChartEditorTabs() { _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Legend, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Data, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Page, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Series, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Tools, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Themes, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Axes, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Main, _
                                     Steema.TeeChart.Editors.ChartEditorTabs.Print} '
            editor1.Title = "Graph Display Export Wizard"
            editor1.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Export
            editor1.ShowModal()
Also, when i remove Steema.TeeChart.Editors.ChartEditorTabs.Main from the list, it gives the user to add and delete series from the General tab. Can I remove these two buttons (add series and remove series) from the display of Main window. I like everything else, but don't want my users to tinker with series outside the control of my code.

Thanks for the help.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Help button in Chart Editor

Post by Yeray » Thu Sep 02, 2010 2:49 pm

Hi asupriya,

There are some ChartEditorOptions you can play with (Add, Delete, Change, Clone, Title, Help, Groups, GroupAll).

Code: Select all

            Steema.TeeChart.Editor editor = new Steema.TeeChart.Editor(tChart1);
            Steema.TeeChart.Editors.ChartEditorOptions[] options = new Steema.TeeChart.Editors.ChartEditorOptions[1];
            options[0] = Steema.TeeChart.Editors.ChartEditorOptions.Title;
            editor.Options = options;
            editor.ShowModal();
If you set one of these options, the others will be deactivated.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Re: Help button in Chart Editor

Post by asupriya » Thu Sep 02, 2010 3:32 pm

Yerey,

thanks for the tip. One more related question... I can hide main tabs as shown in my first post. How can i hide sub-tabs that I don't want (see the image)?
9-2-2010 10-30-39 AM.png
9-2-2010 10-30-39 AM.png (10.31 KiB) Viewed 5843 times
Thanks.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Help button in Chart Editor

Post by Yeray » Fri Sep 03, 2010 3:28 pm

Hi asupriya,

If you only want the export editor you could create it directly:

Code: Select all

            Steema.TeeChart.Editors.Export.ExportEditor exp1 = new Steema.TeeChart.Editors.Export.ExportEditor(tChart1.Chart);
            exp1.Show();
But I'm afraid it doesn't allow to hide its tabs.
I've added it to the wish list to be implemented in future releases (TF02015138)
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply