specify the size of the customization dialog

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SRing
Newbie
Newbie
Posts: 2
Joined: Wed Jul 18, 2012 12:00 am

specify the size of the customization dialog

Post by SRing » Thu Feb 07, 2013 11:10 pm

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.
Attachments
customize.jpg
customize.jpg (129.02 KiB) Viewed 4530 times

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

Re: specify the size of the customization dialog

Post by Sandra » Fri Feb 08, 2013 12:30 pm

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,
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

SRing
Newbie
Newbie
Posts: 2
Joined: Wed Jul 18, 2012 12:00 am

Re: specify the size of the customization dialog

Post by SRing » Fri Feb 08, 2013 5:17 pm

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?

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

Re: specify the size of the customization dialog

Post by Sandra » Mon Feb 11, 2013 9:48 am

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,
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

Post Reply