Divelements Community
Customer discussion of all Divelements products

TabControl Milborne renderer bug

Latest post 03-23-2006 20:14 by Tim Dawson. 3 replies.
  • 11-07-2005 16:06

    Confused [*-)] TabControl Milborne renderer bug

    I've a TabControl with the Milborne renderer and it throws an exception if I set the width or height to 0. This won't happen if I choose any other renderer. Here's the stack trace:

    System.ArgumentException: Rectangle '{X=0,Y=0,Width=844,Height=0}' cannot have a width or height equal to 0.
       at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
       at TD.SandDock.Rendering.MilborneRenderer.DrawTabControlBackground(Graphics graphics, Rectangle bounds, Color backColor, Boolean client)
       at TD.SandDock.TabPage.OnPaintBackground(PaintEventArgs pevent)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    I'm using SandDock 2.2.0.0 and VS2005

    Regards,
    Jacobo

  • 11-09-2005 9:55 In reply to

    Re: TabControl Milborne renderer bug

    Thanks for reporting this - we have already put a fix in place for the next version.
  • 03-14-2006 3:21 In reply to

    Re: TabControl Milborne renderer bug

    I am getting this error with Version 2.3.2 on .NET 1.1.
    Is it supposed to have been fixed in this version?
  • 03-23-2006 20:14 In reply to

    Re: TabControl Milborne renderer bug

    Yes, it is. Could you post a simple project that shows this happening?
Page 1 of 1 (4 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems