Attached the exception window when,
I try to re-size the window to absolute minimum and bringing the size back to normal and then pressing left button mouse down to zoom it back an exception is thrown.
Chart contains a line with IsoHorizAxes =true and
tChart1.BeforeDrawSeries += tChart1_BeforeDrawSeries;
void tChart1_BeforeDrawSeries(object sender, Graphics3D g)
{
tChart1.Axes.Bottom.AdjustMaxMin();
}
Exception when re-sizing to minimum...
Exception when re-sizing to minimum...
- Attachments
-
- Exception.png (19.16 KiB) Viewed 4006 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Exception when re-sizing to minimum...
Hello Raavi,
Try:Raavi wrote:I try to re-size the window to absolute minimum and bringing the size back to normal and then pressing left button mouse down to zoom it back an exception is thrown.
Code: Select all
tChart1.Resize += tChart1_Resize;
tChart1.BeforeDrawSeries += tChart1_BeforeDrawSeries;
}
void tChart1_Resize(object sender, EventArgs e)
{
Rectangle rect = tChart1.Chart.ChartRect;
if (rect.Height <= 5 || rect.Width <= 5)
{
tChart1[0].IsoHorizAxes = false;
}
else if (rect.Height >= 5 && rect.Width >= 5)
{
tChart1[0].IsoHorizAxes = true;
}
}
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 |