This commit is contained in:
@@ -779,8 +779,10 @@ namespace Volian.Controls.Library
|
||||
int y1 = bounds.Top;
|
||||
int x2 = bounds.Right - 1;
|
||||
int y2 = bounds.Bottom - 1;
|
||||
Console.WriteLine("{0},{1},{2},{3},{4},{5},{6}", e.Row, e.Col, (e.Style ?? Styles.Normal).Name, lineTop, lineLeft, lineBottom, lineRight);
|
||||
//Console.WriteLine("{0},{1},{2},{3},{4},{5},{6}", e.Row, e.Col, (e.Style ?? Styles.Normal).Name, lineTop, lineLeft, lineBottom, lineRight);
|
||||
Color bColor = Color.Blue; // Temporary - Set the border color to blue.
|
||||
GridItem myGridItem = Parent as GridItem;
|
||||
if (myGridItem == null) return;
|
||||
if (row == 0 && lineTop != GridLinePattern.None)
|
||||
{
|
||||
Pen pn = VlnBorders.LinePen(lineTop, bColor);
|
||||
@@ -788,7 +790,6 @@ namespace Volian.Controls.Library
|
||||
GridLinePattern lineTopRight = cr.c2 == Cols.Count - 1 ? GridLinePattern.None : MyBorders.HorizontalLines[cr.r1, cr.c2 + 1];
|
||||
int dxTop = col == 0 ? (lineLeft == GridLinePattern.Double ? -3 :-1): 0;
|
||||
int dx = col == 0 ? -1 : 0;
|
||||
GridItem myGridItem = Parent as GridItem;
|
||||
using (Graphics grParent = myGridItem.CreateGraphics())
|
||||
{
|
||||
if (lineTop == GridLinePattern.Double)// cr.r2 == 0)
|
||||
@@ -813,7 +814,7 @@ namespace Volian.Controls.Library
|
||||
GridLinePattern lineLeftBelow = cr.r2 == Rows.Count - 1 ? GridLinePattern.None : MyBorders.VerticalLines[cr.r2 + 1, cr.c1];
|
||||
int dyLeft = row == 0 ? (lineTop == GridLinePattern.Double ? -3:-1) : 0;
|
||||
int dy = row == 0 ? -1 : 0;
|
||||
GridItem myGridItem = Parent as GridItem;
|
||||
//GridItem myGridItem = Parent as GridItem;
|
||||
using (Graphics grParent = myGridItem.CreateGraphics())
|
||||
{
|
||||
if (lineLeft == GridLinePattern.Double)// cr.r2 == 0)
|
||||
|
Reference in New Issue
Block a user