Page 1 of 1
Editor: Change size of dialog
Posted: Thu Jan 19, 2012 11:04 pm
by 15661292
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
Re: Editor: Change size of dialog and hiding tabs
Posted: Fri Jan 20, 2012 12:50 am
by 15661292
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()
Re: Editor: Change size of dialog
Posted: Mon Jan 23, 2012 11:02 am
by 10050769
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,
Re: Editor: Change size of dialog
Posted: Fri Feb 03, 2012 1:13 am
by 15661292
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
Re: Editor: Change size of dialog
Posted: Fri Feb 03, 2012 3:59 pm
by 10050769
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,
Re: Editor: Change size of dialog
Posted: Fri Feb 03, 2012 10:04 pm
by 15661292
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
Re: Editor: Change size of dialog
Posted: Mon Feb 06, 2012 9:36 am
by 10050769
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,
Re: Editor: Change size of dialog
Posted: Mon Feb 06, 2012 10:50 am
by 15661292
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
Re: Editor: Change size of dialog
Posted: Mon Feb 06, 2012 3:41 pm
by 10050769
Hello Oli,
Thanks for your suggestion about editor, we will consider it for futures versions of TeeChartFor.Net.
Thanks,
Re: Editor: Change size of dialog
Posted: Mon Feb 13, 2012 11:14 am
by 10050769
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,
Re: Editor: Change size of dialog
Posted: Wed Feb 15, 2012 10:06 pm
by 15661292
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
Re: Editor: Change size of dialog
Posted: Fri Feb 17, 2012 4:39 pm
by 10050769
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,