[Mono-bugs] [Bug 74686][Wis] Changed - Treeview scrolling should only scroll the non-visible portion
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Apr 2005 14:39:00 -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.24237 2005-04-21 14:39:00.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 74686
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Windows.Forms
AssignedTo: jackson@ximian.com
ReportedBy: jordi@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -58,6 +58,60 @@
{
Application.Run (new MainForm ());
}
}
}
+
+------- Additional Comments From jordi@ximian.com 2005-04-21 14:38 -------
+Also, in this second sample when it is run with MSNet no scrollbar is
+shown since is not need it but it shown under Mono. It's related also
+to this issue.
+
+using System.Windows.Forms;
+using System.Drawing;
+using System;
+
+namespace MyFormProject
+{
+
+
+ class MainForm : System.Windows.Forms.Form
+ {
+ static private TreeView treeView = new TreeView ();
+ static private Button button = new Button ();
+
+ public MainForm()
+ {
+ treeView = new TreeView ();
+ treeView.Location = new Point (10, 40);
+ treeView.Size = new Size (250, 100);
+ Controls.Add (treeView);
+
+ button.Location = new Point (10, 10);
+ button.Text = "Fill tree";
+ button.Size = new Size (100, 23);
+ button.Click += new System.EventHandler (buttonClick);
+ Controls.Add (button);
+ ClientSize = new Size (400, 400);
+
+ }
+
+
+ private void buttonClick (object sender, System.EventArgs e)
+ {
+ /* Fill tree */
+ treeView.Nodes.Clear ();
+ 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 ());
+ }
+ }
+
+}