[Gtk-sharp-list] Using ListViews/TreeViews in Gtk#?

Charles-Louis charlouis.mono@wanadoo.be
05 Mar 2003 15:34:04 +0100


Hi Georges,

Thanks for your file, it has been very helpful.

I still have one problem though: I've written my interface with glade-2,
and I was wondering where I should put the TreeStore and TreeIterator
declarations: should I do this before the Autoconnect(this)?


If I want to append something to the store (the store is already
'attached' to the treeview), how can I reflect those changes afterwards?

e.g. Adding one item in the TreeView:

myStore.SetValue(...) doesn't seem enough...



Le mar 04/03/2003 à 16:59, George Farris a écrit :
> I did some preliminary docs for TreeView with a ListStore model and sent
> them to the mono-doc mail list, have heard a peep????  I'll included it
> here for you.  I haven't written the selection information yet though I
> do have examples.
> 
> 
> On Tue, 2003-03-04 at 07:39, Charles-Louis wrote:
> > Le mar 04/03/2003 à 16:33, Jorge De Gante a écrit :
> > > Hi Charles
> > > 
> > > 
> > > Check the sample that comes with gtk-sharp, the file is TreeViewDemo.cs
> > > or the source of the doc browser browser.cs, both samples are about
> > > treeviews.
> > 
> > I already looked at the TreeViewDemo.cs (it seems I don't have the doc
> > browser? which package should I download?), but it's using an iterator
> > to populate the treeview with an XML file.
> > 
> > I'm writing a LogViewer, and I have to be able to add items line per
> > line (eg. when clicking on a Button)
> > 
> > Aren't there any methods like TreeView.Add(item)?
> > 
> > 
> > > 
> > > El mar, 04-03-2003 a las 07:29, Charles-Louis escribió:
> > > > Hello,
> > > > 
> > > > I'm pretty new to programming with Gtk and Glade. I've designed an
> > > > application with Glade that should use ListViews (but I found out that
> > > > ListViews were deprecated... so I've used a TreeView instead).
> > > > 
> > > > I wanted to know how I can populate these Views 
> > > > 
> > > > eg. ---------------------------------------
> > > >     |First Name   |Last Name    | Info    |
> > > >     ---------------------------------------
> > > >     |Chuck        |Berry        | Artist  |
> > > >     ---------------------------------------
> > > >     |John         |Johnson      | Baker   |
> > > >     ---------------------------------------
> > > > 
> > > > 
> > > > Regards
> > > > -- 
> > > > Charles-Louis <charlouis.mono@wanadoo.be>
> > > > 
> > > > _______________________________________________
> > > > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-- 
Charles-Louis <charlouis.mono@wanadoo.be>