Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Another release... new bugs

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Another release... new bugs
Link Posted: 24-Nov-2006 08:57
Yes, we can't find the source of problem.
Did you tried to use FlyGrid without Stylist? May be problem in custom Stylist or custom draw node?
Link Posted: 24-Nov-2006 09:45
ok, this line seems to be causing the issue.. if I comment it, it works but note that this always worked until after 1.4.0.12 libs:

        internal static bool DrawScrollBarTrack(Control ctl, Graphics g, Rectangle r, bool rightToLeft, ScrollBarTrackState element_state, bool test)
        {
            g.FillRectangle(new SolidBrush(Colors.Background), new Rectangle(r.X, r.Y, 15, ctl.Height));
            return true;
        }


what's wrong about this? how to draw the ScrollBarTrack in a different color?
Link Posted: 24-Nov-2006 11:43
Please take into account the parameter test, if test is true - FlyGrid painter requests just answer only - drawing of this element is supported or not (when test is true, rectangle can by non-valid for drawing):

internal static bool DrawScrollBarTrack(Control ctl, Graphics g, Rectangle r, bool rightToLeft, ScrollBarTrackState element_state, bool test)
{
  if (!test)
  {
    //SystemBrushes doesn't require to be disposed, and use in \"using\" statements
    g.FillRectangle(SystemBrushes.Background, r);
  }
  return true;
}


Please review your custom stylist to prevent drawing when test parameter is true.