Hide "Chart" tab in editor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MattG
Newbie
Newbie
Posts: 23
Joined: Thu Jun 27, 2013 12:00 am

Hide "Chart" tab in editor

Post by MattG » Fri Jan 17, 2014 6:44 pm

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
Matt Garrett
CRTech
Boulder, Colorado, USA

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Hide "Chart" tab in editor

Post by Christopher » Mon Jan 20, 2014 9:32 am

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();
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

MattG
Newbie
Newbie
Posts: 23
Joined: Thu Jun 27, 2013 12:00 am

Re: Hide "Chart" tab in editor

Post by MattG » Mon Jan 20, 2014 4:57 pm

Thanks Christopher, Main worked to hide Chart. I thought I tried that one previously, but I guess not.
Matt Garrett
CRTech
Boulder, Colorado, USA

Post Reply