Hi Steema Support,
When we resizes the application window then teechart manages appearance of all the series, legend ,ticks etc. according to window size or we can say it manage its GUI as screen resolution. But when we use Rectangle tool in teechart and resizes the application window, whole graph maintains its GUI except Rectangle tool i.e. on resizing the application window Rectangle tool size and its text does not grows and shrinks as per screen resolution of application window.
As shown in fig.
when application window is maximized.
When application window is resized : In this case application window size is small then rectangle tool covers its whole plot as shown in fig. We want to resize(rectangle tool and its text) as application window size.
It will so helpful for us if you please provide any alternative solution.
Thanks in advance.
Thanks and Regards
Plano research
Resize Rectangle Tool
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Resize Rectangle Tool
Have you tried changing the font size in the resize event, e.g.
Code: Select all
RectangleTool tool;
private void InitializeChart()
{
tChart1.Series.Add(typeof(Line)).FillSampleValues();
tool = new RectangleTool(tChart1.Chart);
tool.Shape.Transparency = 0;
tool.Text = "This is" + Utils.NewLine + "some example" + Utils.NewLine + "multiline text";
tool.Left = 200;
tool.Top = 150;
tool.AutoSize = true;
tChart1.Resize += tChart1_Resize;
}
void tChart1_Resize(object sender, EventArgs e)
{
tool.Shape.Font.Size = 4;
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |