[Mono-bugs] [Bug 542481] Extended TreeView control has some rendering issues

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 27 12:51:09 EDT 2009


User jpobst at novell.com added comment

Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Jonathan Pobst <jpobst at novell.com>  2009-09-27 10:50:59 MDT ---
Fixed the state images not updating in r142724.

2009-09-26  Jonathan Pobst  <monkey at jpobst.com>

    * TreeNode.cs: When we invalidate a node, make sure we start at
    0, instead of the node's Bounds.Left, which does not include
    the +/-, checkbox, or stateimages.
    [Fixes bug #542481]

If you want to work around this, you can invalidate the full node manually
after changing its state image in your nodeActivate method:

Rectangle r = new Rectangle (0, node.Bounds.Top, node.Bounds.Width,
node.TreeView.Invalidate (r);

The other issue is caused because you override the OnMouseDown method, but do
not call base.OnMouseDown (you call base.OnMouseClick instead).  Mono's
TreeView is listening for the MouseDown event to do it's processing, and the
event is never fired because Control.OnMouseDown never gets called.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list