On Thu, 2003-02-27 at 14:46, Charles-Louis wrote: > Hello, > > > I'm writing a small application in mono with gtk# and glade2, and I have > to use some kind of a listview. > > I saw that these are deprecated items, and that you now have a > TreeListView. > > My Questions are: > > 1. How can you define the number of columns on a listview? By default, > Glade inserts two columns... > > 2. How can you insert Data into these Columns? Data is added > automatically (not editable), one line at a time. The documentation on > these items is very scarce, so I don't know if I can add a string, an > icon,... into different columns. Is it something like > TreeView.AddData(...)?
Glade doesn't insert any columns or data, nor does it create ListStores or TreeStores. This is left up to you to do in code. Until the Handbook covers the topic completely, you'd be best off going by the documentation for TreeView at http://developer.gnome.org/ along with the example in gtk-sharp/sample. There's also a list for Gtk#-related issues (gtk-sharp-list). There is work going on to make the TreeView API more intuitive (eg. not requiring explicit GLib.Value calls), but this might take a while to get completed. _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
