[Mono-list] ListView.cs bugs

Peter Dennis Bartok peter@novonyx.com
Wed, 23 Feb 2005 22:47:02 -0700


Chris,

Thanks for the fix. I've commited it to svn. I also fixed assigning the 
owner for Insert(), which had the same issue.

The redraw problem with tab page switches is a bug and I've logged it here: 
http://bugzilla.ximian.com/show_bug.cgi?id=72950

Cheers,
 Peter

-----Original Message-----
From: "Chris Bacon" <chris.bacon@docobo.co.uk>
To: <mono-list@lists.ximian.com>
Date: 23 February, 2005 18:46
Subject: [Mono-list] ListView.cs bugs


>Hi,
>
>I've discovered a possible bug in ListView.cs.
>
>When a ColumnHeader is added to the ColumnHeaderList its 'owner' member is
>not set.
>The attached patch fixes this, although I'm not sure if it fixes it in the
>correct way.
>
>The attached TestCode.cs shows this and it also shows a bug where the
>neither the listview control nor the label control are redrawn when
>switching between the two tabPages.
>I'm not sure if this is supposed to work; if not, then sorry about bringing
>it up!
>
>There is also a curious anomaly in the MS documentation for
>"ListView.ColumnHeaderCollection.AddRange" which states that "This method
>removes all existing column headers from the collection before inserting 
>new
>items". However, this does not seem to be true (in MS or Mono).
>
>Chris
>