1.1 --- a/External/Aga.Controls/Tree/TreeViewAdv.Draw.cs Sun May 27 15:16:19 2012 +0000
1.2 +++ b/External/Aga.Controls/Tree/TreeViewAdv.Draw.cs Sun May 27 16:08:54 2012 +0000
1.3 @@ -135,6 +135,10 @@
1.4
1.5 OnRowDraw(e, node, context, row, rowRect);
1.6
1.7 + if ((GridLineStyle & GridLineStyle.Horizontal) == GridLineStyle.Horizontal) {
1.8 + e.Graphics.DrawLine(LightGrayPen, 0, rowRect.Bottom, e.Graphics.ClipBounds.Right, rowRect.Bottom);
1.9 + }
1.10 +
1.11 if (FullRowSelect)
1.12 {
1.13 context.DrawFocus = false;
1.14 @@ -143,26 +147,26 @@
1.15 Rectangle focusRect = new Rectangle(OffsetX, rowRect.Y, ClientRectangle.Width, rowRect.Height);
1.16 if (context.DrawSelection == DrawSelectionMode.Active)
1.17 {
1.18 - e.Graphics.FillRectangle(SystemBrushes.Highlight, focusRect);
1.19 + e.Graphics.FillRectangle(GrayBrush, focusRect);
1.20 context.DrawSelection = DrawSelectionMode.FullRowSelect;
1.21 }
1.22 else
1.23 {
1.24 - e.Graphics.FillRectangle(SystemBrushes.InactiveBorder, focusRect);
1.25 + e.Graphics.FillRectangle(GrayBrush, focusRect);
1.26 context.DrawSelection = DrawSelectionMode.None;
1.27 }
1.28 }
1.29 }
1.30
1.31 - if ((GridLineStyle & GridLineStyle.Horizontal) == GridLineStyle.Horizontal)
1.32 - e.Graphics.DrawLine(SystemPens.InactiveBorder, 0, rowRect.Bottom, e.Graphics.ClipBounds.Right, rowRect.Bottom);
1.33 -
1.34 if (ShowLines)
1.35 DrawLines(e.Graphics, node, rowRect);
1.36
1.37 DrawNode(node, context);
1.38 }
1.39
1.40 + private Brush GrayBrush = new SolidBrush(Color.FromArgb(240, 240, 240));
1.41 + private Pen LightGrayPen = new Pen(Color.FromArgb(247, 247, 247));
1.42 +
1.43 private void DrawVerticalGridLines(Graphics gr, int y)
1.44 {
1.45 int x = 0;