Page 1 of 1

specify the size of the customization dialog

Posted: Thu Feb 07, 2013 11:10 pm
by 15663043
Is it possible to specify the size of the customization dialog. I've attached a jpg that shows the problem. Some parts get cut off by default, and it would be nice to avoid this.

Re: specify the size of the customization dialog

Posted: Fri Feb 08, 2013 12:30 pm
by 10050769
Hello SRing,

You can change the size of Editor using next suggestion code:

Code: Select all

Editor editor1;

       private void InitializeChart()
       {
           Steema.TeeChart.Styles.Line line = new Line(tChart1.Chart);
           line.FillSampleValues();
           editor1 = new Editor(tChart1);
           editor1.Width = 800;
           editor1.Height = 500;
       }
Could you tell us if previous code works as you want?

I hope will helps.

Thanks,

Re: specify the size of the customization dialog

Posted: Fri Feb 08, 2013 5:17 pm
by 15663043
This seems to work. I had just been using
TeeChart.Editor.Show(plot)
Do I need to be doing something to copy options or anything from the static editor, or will this function identically?

Re: specify the size of the customization dialog

Posted: Mon Feb 11, 2013 9:48 am
by 10050769
Hello SRing,

Do I need to be doing something to copy options or anything from the static editor, or will this function identically?

You need use the methods of Editor component if you would change the size of editor, because when you use Steema.TeeChart.Editor.Show(tChart1); you would work with a default size of TChart1 editor , therefore you cannot change the size editor directly, you need use editor component, assign custom size and call the ShowModal method as do in next code.

Code: Select all

 editor1 = new Steema.TeeChart.Editor(tChart1);
            editor1.Width = 800;
            editor1.Height = 500;
            editor1.ShowModal();
Thanks,