[Gtk-sharp-list] Not underline Treeview column title

Rafael Teixeira monoman at gmail.com
Sun Mar 11 15:13:16 EDT 2007


Rephrasing Latexer thoughts as a code snippet, either:

          Label label = new Label("Lord_Phoenix");
          label.UseUnderline = false;
          treeview1.Columns[0].Widget = label;
          label.ShowAll();

or

          Label label = new Label(null);
          label.Text = "Lord_Phoenix";
          treeview1.Columns[0].Widget = label;
          label.ShowAll();

:)

On 3/11/07, Peter Johanson <latexer at gentoo.org> wrote:
> On Sun, Mar 11, 2007 at 03:43:51PM +0100, lordphoenix wrote:
> > Hi
> > I have treeview column name wiht an "_".
> > I should like that column appears as is without next characters
> > after "_" be underline.
> >
> > Someone know how I can do this?
>
> If all else fails, you can set the TreeViewColumn's "Widget" property to
> be your own Gtk.Label, and set that Label's Text property instead of its
> Markup property (as it seems TreeViewColumn does with its default button
> label widget).
>
> -pete
>
> --
> Peter Johanson
> <latexer at gentoo.org>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw


More information about the Gtk-sharp-list mailing list