[Gtk-sharp-list] TreeView Column positioning

Thiago Milczarek Sayão thiago.sayao at gmail.com
Wed Oct 25 22:42:01 EDT 2006


You have to do this:

Gtk.TreeViewColumn expcolumn = new Gtk.TreeViewColumn ();
expcolumn.MaxWidth = 16;

treeview.ExpanderColumn = expcolumn;

This will work :)

[ ]'ss


On Wed, 2006-10-25 at 12:57 -0600, Draek wrote:

> I have designed a TreeView custom widget that includes an expander
> column, and a column with custom data.
> 
> For some reasno, the column with the custom data is automatically pushed
> over to the right about half an inch, and i can't seem to change that.
> 
> If you use GAIM, you will see what I'm talking about. The contacts in
> the contact list are about half an inch to the right.
> 
> Is there a way to change this margin? Or is it basically hard coded into
> the TreeView?
> 
> Example:
> 
> > Root
> ------> Child Item
> ------> Child Item
> > Root2
> ------> Child Item
> 
> the ------> i want to be more like:
> 
> > Root
> --> Child Item
> --> Child Item
> > Root2
> --> Child Item
> 
> I've tried to change the expander column width, doesn't work.
> 
> Any help here would be greatly appreciated.
> 
> Draek
> Galaxium Messenger
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061026/b7f2fbea/attachment.html 


More information about the Gtk-sharp-list mailing list