Author: jackson
Date: 2005-04-14 16:43:49 -0400 (Thu, 14 Apr 2005)
New Revision: 43013
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
Log:
* TreeView.cs: Handle clicks when plus minus is disabled. Don't
check plus minus or checkbox clicks unless those features are enabled.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-14 20:25:44 UTC (rev 43012)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-14 20:43:49 UTC (rev 43013)
@@ -1,5 +1,10 @@
2005-04-14 Jackson Harper <[EMAIL PROTECTED]>
+ * TreeView.cs: Handle clicks when plus minus is disabled. Don't
+ check plus minus or checkbox clicks unless those features are enabled.
+
+2005-04-14 Jackson Harper <[EMAIL PROTECTED]>
+
* TreeView.cs: Add methods for setting the top and bottom visible
nodes. TreeNode::EnsureVisible uses these methods.
* TreeNode.cs: Implement EnsureVisible
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2005-04-14 20:25:44 UTC (rev 43012)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2005-04-14 20:43:49 UTC (rev 43013)
@@ -1073,9 +1073,6 @@
private void MouseDownHandler (object sender, MouseEventArgs e)
{
- if (!show_plus_minus)
- return;
-
TreeNode node = GetNodeAt (e.Y);
if (node == null)
return;
@@ -1097,10 +1094,10 @@
invalid = Rectangle.Union (invalid,
selected_node.Bounds);
Invalidate (invalid);
}
- } else if (node.PlusMinusBounds.Contains (e.X, e.Y)) {
+ } else if (show_plus_minus &&
node.PlusMinusBounds.Contains (e.X, e.Y)) {
node.Toggle ();
return;
- } else if (node.CheckBoxBounds.Contains (e.X, e.Y)) {
+ } else if (checkboxes && node.CheckBoxBounds.Contains
(e.X, e.Y)) {
node.Checked = !node.Checked;
return;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches