ChartEditorTabs

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

ChartEditorTabs

Post by tirby » Thu Jan 12, 2012 2:52 am

Hello,

I'm uing VS2010 C#.
I'd like to set the dialog such that the "Print" tab is selected when it loads.
Steema.TeeChart.Editors.ChartEditorTabs.Print is the Tabs function, but I don't know how to set(select) the Print tab.
Can anyone help?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ChartEditorTabs

Post by Sandra » Thu Jan 12, 2012 12:28 pm

Hello tirby,

I recommend you do something as next code where I have used DefaultTab to assign the tab I want appear first.

Code: Select all

        Steema.TeeChart.Editor editor1; 
        private void InitializeChart()
        {
            Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line.FillSampleValues();
            editor1 = new Editor(tChart1);        
        }

        private void button2_Click(object sender, EventArgs e)
        {
            editor1.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Print;
            editor1.ShowModal();
        }
Can you tell us if previous code works as you want?

I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Re: ChartEditorTabs

Post by tirby » Thu Jan 12, 2012 3:33 pm

Thank You Sandra!
This works perfect!

Post Reply