Page 1 of 1

MeasureDisplayStringWidth exception (DEBUG BUILD)

Posted: Fri Aug 25, 2006 5:23 pm
by 9790349
Hi,

I the new debug build (2.0.2428.17694) when you set Title an empty string (in editor Chart / Titles / Style) I get the following exception:

System.ArgumentException: Invalid parameter used.
at System.Drawing.Graphics.MeasureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.MeasureDisplayStringWidth(String text, Font font)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.MeasureString(ChartFont f, String text)
at Steema.TeeChart.Drawing.Graphics3D.TextWidth(String text)
at Steema.TeeChart.Title.Draw(Graphics3D g, Rectangle& rect)
at Steema.TeeChart.Title.DoDraw(Graphics3D g, Rectangle& rect, Boolean CustomOnly)
at Steema.TeeChart.Chart.DrawTitleFoot(Rectangle& rect, Boolean CustomOnly)
at Steema.TeeChart.Chart.DrawTitlesAndLegend(Graphics g, Rectangle& tmp, Boolean BeforeSeries)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

When you set to Invisible there is no exception.

Best regards,

Gabor Varga

Posted: Fri Aug 25, 2006 5:37 pm
by 9790349
Hi,

This problem resolved in 2.0.2428.30426.

Thanks!

Gabor Varga

P.S. I noticed this new build after reporting this issue, sorry.