[Gtk-sharp-list] Scrolled TreeView without scrollbars?
Daniel Morgan
danielmorgan@verizon.net
Sat, 11 Dec 2004 17:39:27 -0500
I would not set any scrolling policy then.
ScrolledWindow sw =3D new ScrolledWindow ();
this.PackStart (sw, true, true, 0);
_treeStore =3D new TreeStore (typeof (string));
_rootIter =3D _treeStore.AppendValues ("Connections");
=09
_treeView =3D new TreeView (_treeStore);=09
_treeView.AppendColumn ("Connections", new
CellRendererText (), "text", 0);
_treeView.HeadersVisible =3D false;
sw.Add (_treeView);
-----Original Message-----
From: gtk-sharp-list-admin@lists.ximian.com
[mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Christian =
Rudh
Sent: Saturday, December 11, 2004 9:10 AM
To: gtk-sharp-list@ximian.com
Subject: [Gtk-sharp-list] Scrolled TreeView without scrollbars?
Hi
I have a TreeView with two columns inside a ScrolledWindow.
If I add a long text to one of the columns, the window increases its =
witdh
to show all of the text. I don't want that.
If I set the horizontal scrolling policy to auto or always the window =
width
isn't changed when the text is added which is good. But I now have a =
visible
scrollbar which I don't want.
So is it somehow possible to have the window to not increase its witdh =
but
at the same time not show the scrollbar? So the user has to manually
increase the window width too see all of the text?
--=20
Christian Rudh <lists-christian@rudh.se>
_______________________________________________
Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list