[Gtk-sharp-list] Fwd: different color rows for GtkTreeView
mail.gery at gmail.com
Sun Apr 27 09:02:33 EDT 2008
I checked the Mono Documentation and saw two interesting properties for
TreeViews: EvenRowColor and OddRowColor. The only problem is, that both of
them are read-only and I found no methods to change their values. I'm sure
that the developers of GTK# didn't forget these methods by chance. They
probably had a reason to left these methods out.
2008/4/27 Chris Howie <cdhowie at gmail.com>:
On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard <timothy.howard at gmail.com>
> > I think this is appropriate material for this list. I'm trying to have a
> > TreeView with a ListStore have rows that are different colors. I'm
> > sure it's possible, because it looks like it's the case with MonoDevelop
> > User Tasks/Comments. The question is, how?
> > (Point of clarity: First row be red, second row be green -- that's all.
> > guess more generally, how do you control the row color as opposed to the
> > column color)
> > Thanks!
> That would be controlled by the GTK+ theme selected by the user.
> Unless you have a really, really, *REALLY* good reason to decide not
> to honor the user's preferences, you should just stick with the
> Chris Howie
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list