[Mono-bugs] [Bug 74686][Wis] New - Treeview scrolling should only scroll the non-visible portion

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Apr 2005 14:29:54 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jordi@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74686

--- shadow/74686	2005-04-21 14:29:54.000000000 -0400
+++ shadow/74686.tmp.24108	2005-04-21 14:29:54.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 74686
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: jackson@ximian.com                            
+ReportedBy: jordi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Treeview scrolling should only scroll the non-visible portion
+
+Treeview scrolling should only scroll the non-visible portion of the text.
+Run this sample with MS Net and Mono and you will see the difference. With
+MSNet you only scroll horizontally the non-visible part. With Mono the
+scrollbar is unnecessary much bigger.
+
+;----------------------------------------------------------------
+
+using System.Windows.Forms;
+using System.Drawing;
+using System;
+
+namespace MyFormProject 
+{
+	
+	
+	class MainForm : System.Windows.Forms.Form
+	{	
+		static private TreeView treeView = new TreeView ();		
+		
+		public MainForm()
+		{
+			treeView = new TreeView ();
+			treeView.Location = new Point (10,10);
+			treeView.Size = new Size (200, 200);
+			Controls.Add (treeView);
+			
+			treeView.Nodes.Clear ();
+			
+			/* Fill tree */
+			TreeNode node_propcol = new TreeNode
+("ListManager.PropertyDescriptorCollection");
+			treeView.Nodes.Add (node_propcol);				
+			node_propcol.Nodes.Add (new TreeNode ("object: A"));
+			node_propcol.Nodes.Add (new TreeNode ("object: B"));			
+			
+		}	
+		
+		
+		public static void Main(string[] args)
+		{
+			Application.Run (new MainForm ());			
+		}
+	}
+	
+}