Editor: Change size of dialog

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Editor: Change size of dialog

Post by Oli » Thu Jan 19, 2012 11:04 pm

Hi,

I tried changing the size of the dialog box of the editor. However the following code does not resize it, the dialog remains it is original rather small size. Any help would be great to fix it.

GraphEditor = New Steema.TeeChart.Editor(NewChart)
GraphEditor.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Axes
GraphEditor.Size = New System.Drawing.Size(800, 500)
GraphEditor.ShowModal(GraphDesktop)


Please see also the attachment showing the editor with controls overlying each other, and too small to show its content completely. How can this be fixed? Is that caused by computer configurations (screen resoution)?...I work with 1600x900, so should be plenty to show everything.

Oliver
Attachments
Teechart_Editor.png
Teechart_Editor.png (123.31 KiB) Viewed 16808 times

Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Re: Editor: Change size of dialog and hiding tabs

Post by Oli » Fri Jan 20, 2012 12:50 am

Hi,

I figured out how to resize the editor, but its content is still kind of "messy". From previous posts I learned that it is not a new problem. Any comments on how and when this can be improved?

I am now trying to display just the tab "Chart" in the editor (see attachment Editor_1), but when I use the following code to remove the "Print" tab first, several other tabs get hidden (see attachment Editor_2. Why is that? And how can I hide all tabs except the "Chart" tab.

Thanks for help,
Oliver

Dim tcEHiddenTabs(1) As Steema.TeeChart.Editors.ChartEditorTabs
tcEHiddenTabs(1) = Steema.TeeChart.Editors.ChartEditorTabs.Print

Dim editor As Steema.TeeChart.Editor = New Steema.TeeChart.Editor(NewChart)
editor.Width = CType(800, Integer)
editor.Height = CType(500, Integer)
Dim size As Size = New Size(CType(800, Integer), CType(500, Integer))
editor.HideTabs = tcEHiddenTabs
editor.Size = size
editor.ShowModal()
Attachments
Editor_2.png
Editor_2.png (108.72 KiB) Viewed 16777 times
Editor_1.png
Editor_1.png (119.96 KiB) Viewed 16737 times

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

Re: Editor: Change size of dialog

Post by Sandra » Mon Jan 23, 2012 11:02 am

Hello Oli,

I suggest you do something us next code to hide the tabs you don't want as do in next code:

Code: Select all

Public Sub New()
        InitializeComponent()
        InitializeChart()
    End Sub
    Private Line1 As Steema.TeeChart.Styles.Line
    Private editor1 As Steema.TeeChart.Editor
    Private Sub InitializeChart()
        Line1 = New Line(TChart1.Chart)
        Line1.FillSampleValues()
        editor1 = New Editor(TChart1)
        editor1.Width = Convert.ToInt32(800)
        editor1.Height = Convert.ToInt32(500);
    End Sub

    Private Sub button2_Click(sender As Object, e As EventArgs) Handles Button1.Click
        editor1.HideTabs = New Steema.TeeChart.Editors.ChartEditorTabs() {
            Steema.TeeChart.Editors.ChartEditorTabs.Export,
            Steema.TeeChart.Editors.ChartEditorTabs.Legend,
            Steema.TeeChart.Editors.ChartEditorTabs.Page,
            Steema.TeeChart.Editors.ChartEditorTabs.Print,
            Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource,
            Steema.TeeChart.Editors.ChartEditorTabs.Tools,
            Steema.TeeChart.Editors.ChartEditorTabs.Walls,
            Steema.TeeChart.Editors.ChartEditorTabs.Series,
            Steema.TeeChart.Editors.ChartEditorTabs.Themes,
            Steema.TeeChart.Editors.ChartEditorTabs.Data,
            Steema.TeeChart.Editors.ChartEditorTabs.Animations
         }
        editor1.ShowModal()
    End Sub
Could you tell us, if previous code works as you expect?

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

Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Re: Editor: Change size of dialog

Post by Oli » Fri Feb 03, 2012 1:13 am

Hi Sandra,

thanks for your reply. The code you sent me is similar to what I used, and it seems I found the problem. If I hide all tabs, the chart tab is shown. However, it seems it is not possible to show the tab chart and print, for example. In such case only the tab print is shown, but not the tab chart. Is it a bug? I am using version V2011 (4.1.2012.1032).

I am also wondering if you know why some of the controls in the editor are not displayed properly, some are cut off. Please see my earlier posting with the attachment.

Regards
Oliver

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

Re: Editor: Change size of dialog

Post by Sandra » Fri Feb 03, 2012 3:59 pm

Hello Oli,
However, it seems it is not possible to show the tab chart and print, for example.
Yes is possible, you only need do next:

Code: Select all

 Private Sub button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        editor1.HideTabs = New Steema.TeeChart.Editors.ChartEditorTabs() {
        Steema.TeeChart.Editors.ChartEditorTabs.Export,
        Steema.TeeChart.Editors.ChartEditorTabs.Legend,
        Steema.TeeChart.Editors.ChartEditorTabs.Page,
        Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource,
        Steema.TeeChart.Editors.ChartEditorTabs.Tools,
        Steema.TeeChart.Editors.ChartEditorTabs.Walls,
        Steema.TeeChart.Editors.ChartEditorTabs.Series,
        Steema.TeeChart.Editors.ChartEditorTabs.Themes,
        Steema.TeeChart.Editors.ChartEditorTabs.Data,
        Steema.TeeChart.Editors.ChartEditorTabs.Animations
         }
        editor1.ShowModal()
    End Sub
In such case only the tab print is shown, but not the tab chart. Is it a bug? I am using version V2011 (4.1.2012.1032).
You are right. I have added your problem in but list report with number [TF02016019] we will try to fix it for next maintenance releases of TeeChart.Net. For the moment, you can take a look in the All Features \Welcome !\Printing\Print Export dialog where you can find and example as do to show the print dialog.
I am also wondering if you know why some of the controls in the editor are not displayed properly, some are cut off. Please see my earlier posting with the attachment
Sorry, but I can not reproduce your problem using last version of TeeChartFor.Net so, the editor is shown correctly for me.

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

Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Re: Editor: Change size of dialog

Post by Oli » Fri Feb 03, 2012 10:04 pm

Hi Sandra,

I read about other posts reporting that controls in the editor run in each other. For example:
http://www.teechart.net/support/viewtop ... ols#p39259

I really need to figure out how the display the editor properly as every of my customer will complain about it. Is there a way to resize the controls of the editor, for example with screen size resolution. That is typically not necessary, but I am wondering if that could be the root of the problem.

Oliver

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

Re: Editor: Change size of dialog

Post by Sandra » Mon Feb 06, 2012 9:36 am

Hello Oliver,

I am afraid it is not possible at the moment. I have increase the severity of bug number TF02014079 to be consider its inclusion in next maintenance releases. On the other hand, is possible that the screen size resolution have effects the display of Editor. Can you tell us, if you change your screen size resolution the editors show correctly?

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

Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Re: Editor: Change size of dialog

Post by Oli » Mon Feb 06, 2012 10:50 am

Hi Sandra,

The problem persist with smaller and larger screen resolution.

I resize main controls of my application by getting the height and width of the user's screen to be screen independent. BUT I do not apply this to the teechart editor as the size of the editorh is smaller than the minimum screen resolution supported. The teechart has a constant size of 500x800 no matter what resolution the screen has.

Anyway, I have decided to design my own editor...it is a nice feature of your assembly, but too many features supported and too many tabs make it somehow hard to remember where too find a particular feature. May be redesigning it is something you would like to consider for future releases.

Thanks for your help anyway.

Oliver

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

Re: Editor: Change size of dialog

Post by Sandra » Mon Feb 06, 2012 3:41 pm

Hello Oli,

Thanks for your suggestion about editor, we will consider it for futures versions of TeeChartFor.Net.

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

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

Re: Editor: Change size of dialog

Post by Sandra » Mon Feb 13, 2012 11:14 am

Hello Oli,

I have a good news for you. We have made many test and we consider the bug with number TF02016019 is not a bug, so we find a solution for the issue, you only need d set the DefaultTab the print tab. See next 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;
       }

       private void button1_Click(object sender, EventArgs e)
       {
           editor1.HideTabs = new Steema.TeeChart.Editors.ChartEditorTabs[]
           {
       Steema.TeeChart.Editors.ChartEditorTabs.Export,
       Steema.TeeChart.Editors.ChartEditorTabs.Legend,
       Steema.TeeChart.Editors.ChartEditorTabs.Page,
       Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource,
       Steema.TeeChart.Editors.ChartEditorTabs.Main,
       Steema.TeeChart.Editors.ChartEditorTabs.Tools,
       Steema.TeeChart.Editors.ChartEditorTabs.Walls,
       Steema.TeeChart.Editors.ChartEditorTabs.Series,
       Steema.TeeChart.Editors.ChartEditorTabs.Themes,
       Steema.TeeChart.Editors.ChartEditorTabs.Data,
       Steema.TeeChart.Editors.ChartEditorTabs.Animations
           };

           editor1.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Print;
           editor1.ShowModal();
       } 
Can you tell us if previous code works fine for you?

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

Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Re: Editor: Change size of dialog

Post by Oli » Wed Feb 15, 2012 10:06 pm

Hi Sandra,

Yes, set the default tab resolve the problem.

However, I am struggling with the proper display of the editor as controls are still overlapping each other, although I set a large size of the editor.

Regards
Oliver

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

Re: Editor: Change size of dialog

Post by Sandra » Fri Feb 17, 2012 4:39 pm

Hello Oliver,

I am afraid I can not reproduce your problems with controls are still overlapping each other. Can you tell us which version of TeeChart are you using and send us a simple code, because we can reproduce your problem here?

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