Jelajahi Sumber

- Use dotted lines instead of dashed lines to match MS better.

svn path=/trunk/mcs/; revision=52600
Jackson Harper 20 tahun lalu
induk
melakukan
edb7d33b50

+ 1 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -4,6 +4,7 @@
 	collection.
 	* TreeView.cs: When the tree is sorted null out the top_node so
 	that it is recalculated.
+	- Use dotted lines instead of dashed lines to match MS better.
 
 2005-11-04  Jordi Mas i Hernandez <[email protected]>
 

+ 1 - 4
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs

@@ -122,9 +122,6 @@ namespace System.Windows.Forms {
 
 			SetStyle (ControlStyles.UserPaint | ControlStyles.StandardClick, false);
 
-			dash = new Pen (SystemColors.ControlLight, 1);
-			dash.DashStyle = DashStyle.Dash;
-
 			string_format = new StringFormat ();
 			string_format.LineAlignment = StringAlignment.Center;
 			string_format.Alignment = StringAlignment.Center;
@@ -951,7 +948,7 @@ namespace System.Windows.Forms {
 			if (dash_color == BackColor)
 				dash_color = ControlPaint.Light (BackColor);
 			dash = new Pen (dash_color, 1);
-			dash.DashStyle = DashStyle.Dash;
+			dash.DashStyle = DashStyle.Dot;
 
 			int depth = 0;
 			int item_height = ItemHeight;