Page 1 of 1

ChartEditorTabs

Posted: Thu Jan 12, 2012 2:52 am
by 13052810
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?

Re: ChartEditorTabs

Posted: Thu Jan 12, 2012 12:28 pm
by 10050769
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,

Re: ChartEditorTabs

Posted: Thu Jan 12, 2012 3:33 pm
by 13052810
Thank You Sandra!
This works perfect!