[Gtk-sharp-list] Painting on the back of a TreeView
Christian Hergert
christian.hergert at gmail.com
Mon Jan 12 14:23:34 EST 2009
On Mon, Jan 12, 2009 at 9:21 AM, Iggy <iggy.ma at gmail.com> wrote:
> Id like to be able to paint some text on the back of a TreeView, so if
> there are no entries it might say something like "No results" on the
> treeview, but I can't figure out which code to use. I have tried
> painting on the background using a Pango.Layout but it isn;t showing
> up. I tried putting it in the Expose event and the Realized event.
>
> Does anybody know how to do this?
You could probably do this with a dummy row.
Are you aware that Gtk.TreeView has multiple GdkWindows? The window
for the row area i believe is the "BinWindow"
(tree_view->priv->bin_window).
-- Christian
More information about the Gtk-sharp-list
mailing list