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

Jorge De Gante jdegante@linuxware.com.mx
04 Mar 2003 10:11:18 -0600


Ok Charles


As I understand you can populate yor tree view in the first level, then
when the rowexpanded event occurs you can the pupelate the lower level
of this node.

The example you are looking for is in the docbrowser source, check the
go-mono.com site and then look for the release notes of the docbrowser,
you sholud see the instruccions to download the sources from cvs.

Then check the file browser.cs, it's very easy to understand.

Hope that helps.


El mar, 04-03-2003 a las 09:39, Charles-Louis escribi=F3:
> Le mar 04/03/2003 =E0 16:33, Jorge De Gante a =E9crit :
> > Hi Charles
> >=20
> >=20
> > 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.
>=20
> 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.
>=20
> I'm writing a LogViewer, and I have to be able to add items line per
> line (eg. when clicking on a Button)
>=20
> Aren't there any methods like TreeView.Add(item)?
>=20
>=20
> >=20
> > El mar, 04-03-2003 a las 07:29, Charles-Louis escribi=F3:
> > > Hello,
> > >=20
> > > 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 tha=
t
> > > ListViews were deprecated... so I've used a TreeView instead).
> > >=20
> > > I wanted to know how I can populate these Views=20
> > >=20
> > > eg. ---------------------------------------
> > >     |First Name   |Last Name    | Info    |
> > >     ---------------------------------------
> > >     |Chuck        |Berry        | Artist  |
> > >     ---------------------------------------
> > >     |John         |Johnson      | Baker   |
> > >     ---------------------------------------
> > >=20
> > >=20
> > > Regards
> > > --=20
> > > Charles-Louis <charlouis.mono@wanadoo.be>
> > >=20
> > > _______________________________________________
> > > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> --=20
> Charles-Louis <charlouis.mono@wanadoo.be>
>=20
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--=20
Jorge De Gante Tellez
jdegante@linuxware.com.mx
LinuxWare S.A. de C.V.
http://www.linuxware.com.mx
Tel. 26-03-15-15 26-03-15-16 26-03-15-17=20
Fax 26-03-15-18