Page 1 of 1

Help button in Chart Editor

Posted: Wed Sep 01, 2010 1:35 am
by 13051032
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.

Re: Help button in Chart Editor

Posted: Thu Sep 02, 2010 2:49 pm
by yeray
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.

Re: Help button in Chart Editor

Posted: Thu Sep 02, 2010 3:32 pm
by 13051032
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 5845 times
Thanks.

Re: Help button in Chart Editor

Posted: Fri Sep 03, 2010 3:28 pm
by yeray
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)