Page 1 of 1

Hide "Chart" tab in editor

Posted: Fri Jan 17, 2014 6:44 pm
by 15666411
I can hide every main tab in Steema::TeeChart::Editor except the one called "Chart" using the Steema::TeeChart::Editors::ChartEditorTabs enum. But "Chart" is not one of the enum values. How do I hide the "Chart" tab?

Thanks,
Matt

Re: Hide "Chart" tab in editor

Posted: Mon Jan 20, 2014 9:32 am
by Christopher
Hello Matt,
MattG wrote:I can hide every main tab in Steema::TeeChart::Editor except the one called "Chart" using the Steema::TeeChart::Editors::ChartEditorTabs enum. But "Chart" is not one of the enum values. How do I hide the "Chart" tab?
I think the enum you're looking for is "ChartEditorTabs.Main", e.g.

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      Editor editor = new Editor(tChart1);
      editor.HideTabs = new ChartEditorTabs[] { ChartEditorTabs.Animations, ChartEditorTabs.Aspect, ChartEditorTabs.Axes, 
                                                ChartEditorTabs.Data, ChartEditorTabs.Export, ChartEditorTabs.General,
                                                ChartEditorTabs.Legend, /*ChartEditorTabs.Main,*/ ChartEditorTabs.Page,
                                                ChartEditorTabs.Panel, ChartEditorTabs.Print, ChartEditorTabs.Series,
                                                ChartEditorTabs.SeriesDataSource, ChartEditorTabs.SeriesList, ChartEditorTabs.Themes,
                                                ChartEditorTabs.Titles, ChartEditorTabs.Tools, ChartEditorTabs.Walls };

      editor.ShowModal();
    }

Re: Hide "Chart" tab in editor

Posted: Mon Jan 20, 2014 4:57 pm
by 15666411
Thanks Christopher, Main worked to hide Chart. I thought I tried that one previously, but I guess not.