note 436 added to gtk.gtkctree.method.insert_node.php

From: Date: Wed, 28 Jul 2004 22:00:11 +0000
Subject: note 436 added to gtk.gtkctree.method.insert_node.php
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-2539@lists.php.net to get a copy of this message
Here an example of assign an element with an child element.. <?php //assign the first element.. $tree_data[0] = $tree->insert_node(null, //It is directly on the root, so there isnt a parent ;-) null, //The same manner as before.. array('First element'), //The name of the node shown inside the tree.. 5, //The spacing between the tree's line and the label.. null, null, null, null, //No images will be displayed.. true, //Say that it contains sublabels! false //It isn't expanded on startup.. ); //assign an subelement.. $tree_data[1] = $tree->insert_node($tree_data[0], //Assigns the parent.. $tree_data[1], //It is the node hisself ;-) array('Subelement of "First Element"'), //The name of the node shown inside the tree.. 5, //The spacing between the tree's line and the label.. null, null, null, null, //No images will be displayed.. false, //Say that it doesnt contain sublabels.. false //It isn't expanded on startup.. ); ?> http://gtk.php.net:80/manual/de/gtk.gtkctree.method.insert_node.php

« previous php.gtk.webmaster (#2539) next »