Hello Adrian,
In your example you are hiding the entire main tab, I want the main tab visible but want to hide the general sub tab of the main tab. I'm assuming the general sub-tab is the one that allows new series to be added.
No, it's not. The general sub-tab is the tab labelled "General", next to the tab named "Axes", which can be seen under the Main tab. If you are in doubt as to which tab is which you can always use the Steema.TeeChart.Editor.DefaultTab property.
In order to have the Main tab visible but to stop users adding series to a chart, you should be using the Steema.TeeChart.Editor.Options property, e.g.
Code: Select all
Dim tcEHiddenTabs(5) As Steema.TeeChart.Editors.ChartEditorTabs
tcEHiddenTabs(0) = Steema.TeeChart.Editors.ChartEditorTabs.Themes
tcEHiddenTabs(1) = Steema.TeeChart.Editors.ChartEditorTabs.Print
tcEHiddenTabs(2) = Steema.TeeChart.Editors.ChartEditorTabs.Export
tcEHiddenTabs(3) = Steema.TeeChart.Editors.ChartEditorTabs.Data
tcEHiddenTabs(4) = Steema.TeeChart.Editors.ChartEditorTabs.Page
tcEHiddenTabs(5) = Steema.TeeChart.Editors.ChartEditorTabs.Tools
Editor1.HideTabs = tcEHiddenTabs
Dim tcEOptions(1) As Steema.TeeChart.Editors.ChartEditorOptions
tcEOptions(0) = Steema.TeeChart.Editors.ChartEditorOptions.Help
tcEOptions(1) = Steema.TeeChart.Editors.ChartEditorOptions.Title
Editor1.Options = tcEOptions
Also in your example the seriesdatasource tab is supposed to be hidden, but it's not in your screen shot.
Yes indeed, you are right. I don't think this has been recognised as a defect before and I have already fixed for the upcoming debug build release.