From 02c1b2c665ef718879e0731313489524775932e8 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 18 May 2011 17:46:13 +0000 Subject: [PATCH] fixed border selection with merged ranges --- PROMS/Volian.Controls.Library/VlnFlexGrid.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs index 844fb62a..d1620667 100644 --- a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs +++ b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs @@ -125,11 +125,19 @@ namespace Volian.Controls.Library if (r == cr.r1 && c == cr.c1) // Look for inside lines { if (cr.r1 > myRange.r1 && cr.r1 <= myRange.r2) // Inside Horizontal Top - if(middle != GridLinePattern.Mixed) MyBorders.HorizontalLines[cr.r1, cr.c1]=middle; + if (middle != GridLinePattern.Mixed) + { + MyBorders.HorizontalLines[cr.r1, cr.c1] = middle; + MyBorders.HorizontalLines[cr.r1, cr.c2] = middle; + } if (cr.r2 > myRange.r1 && cr.r2 < myRange.r2) // Inside Horizontal Bottom if(middle != GridLinePattern.Mixed) MyBorders.HorizontalLines[cr.r2 + 1, cr.c2]=middle; if (cr.c1 > myRange.c1 && cr.c1 <= myRange.c2) // Inside Vertical Left - if(center != GridLinePattern.Mixed) MyBorders.VerticalLines[cr.r1, cr.c1]=center; + if (center != GridLinePattern.Mixed) + { + MyBorders.VerticalLines[cr.r1, cr.c1] = center; + MyBorders.VerticalLines[cr.r2, cr.c1] = center; + } if (cr.c2 > myRange.c1 && cr.c2 < myRange.c2) // Inside Vertical Right if(center != GridLinePattern.Mixed) MyBorders.VerticalLines[cr.r2, cr.c2 + 1]=center; } @@ -4411,9 +4419,9 @@ namespace Volian.Controls.Library get { return _MyCopyOption; } set { - Console.WriteLine("MyCopyOption = {0}", _MyCopyOption); - if (_MyCopyOption != value) - Console.WriteLine("Changed Option to {0}", value); + //Console.WriteLine("MyCopyOption = {0}", _MyCopyOption); + //if (_MyCopyOption != value) + // Console.WriteLine("Changed Option to {0}", value); _MyCopyOption = value; } }