TeeChart version 3.2.2980.19083 freezes on resize.
Posted: Wed Mar 19, 2008 7:09 pm
Hello,
1) Create a Teechart docked full to a window.
2) Add a fastline.
3) Set X values to datetime true
4) Fill the fastline.
5) Hook GetAxisLabel event.
6) Resize the window from right edge all the way to the left edge.
7) By the time it get to the left edge the application freezes.
private void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
{
if (((Steema.TeeChart.Axis)sender).Equals(tChart1.Axes.Right))
{
double price = Convert.ToDouble(e.LabelText);
e.LabelText = "My Label " + price.ToString();
}
}
private void Form1_Load(object sender, EventArgs e)
{
fastLine1.FillSampleValues(1000);
for (int i = 0; i < 1000; i++)
{
fastLine1.Labels.Add(DateTime.Now.AddDays(i).ToShortDateString());
}
}
Note: This works fine in Ver 2
Regards
Srinivas
1) Create a Teechart docked full to a window.
2) Add a fastline.
3) Set X values to datetime true
4) Fill the fastline.
5) Hook GetAxisLabel event.
6) Resize the window from right edge all the way to the left edge.
7) By the time it get to the left edge the application freezes.
private void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
{
if (((Steema.TeeChart.Axis)sender).Equals(tChart1.Axes.Right))
{
double price = Convert.ToDouble(e.LabelText);
e.LabelText = "My Label " + price.ToString();
}
}
private void Form1_Load(object sender, EventArgs e)
{
fastLine1.FillSampleValues(1000);
for (int i = 0; i < 1000; i++)
{
fastLine1.Labels.Add(DateTime.Now.AddDays(i).ToShortDateString());
}
}
Note: This works fine in Ver 2
Regards
Srinivas