[Gtk-sharp-list] Recursive TreeStore?

Bjoern Schiessle bes@schiessle.org
Thu, 24 Mar 2005 23:49:11 +0100


Hi,

On Do, 2005-03-24 at 16:08 -0500, Wei Weng wrote:
> Hi. thanks for the reply. But this is not really what I want.
> I want at least 3 levels of collaps-able TreeStores.
> 
> Right now it looks like
> 
> \--0
>    \--0
>    \--1
> \--1
>    \--0
>    \--1
> 
> I want the thing looks like
> 
> \--0
>    \--0
>      \--0
>      \--1
>    \--1
>      \--0
>      \--1
> 
> Do you know any way to solve my problem? Thanks!

You just have to understand this command:

store.AppendValues (iter, (string) counter2);

iter points to the parent in the tree. So you can use every element in
the TreeView as parent for the next element and create every structure
you want.

Cheers,
Bjoern


-- 
 ,= ,-_-. =.  Bjoern Schiessle                   <bes@schiessle.org>
((_/)o o(\_)) http://www.schiessle.org  Jabber IM: <bes@amessage.de>
 `-'(. .)`-'  If art interprets our dreams, the computer
     \_/      execute them in the guise of programs!