Re: [PHP-GTK] Help with treeview
by Kksou other posts by this author
Jul 27 2007 11:32PM messages near this date
[PHP-GTK] Help with treeview
|
Re: [PHP-GTK] Help with treeview
Fernando Correa da Conceição-3 wrote:
> I am working on a tree view to show a tree of files and dirs(it add the
> files and dirs only when expanded, not as a example in the blog of kksou
> that load all the tree at once). It is working, but i want improve it in
> some ways:
>
> 1. How can I get an event when the user clicks with the right mouse
> button over a row? I want to show a popup menu in this case.
>
> 2. How can I change the identation(increase the distance to the right
> that a child is from the parent?
>
> 3. How can I make the appereance more like a tree in kde/windows? I mean
> use +/- to collapse and expand and draw the lines to show the parent of
> a item. What i want is make it see like a GtkCTree in php-gtk1?
>
> 4. How can I toggle the state? I mean if a row is colapsed, i want
> expand and if expanded I want to collapse?
>
I have ready examples for 1 and 3.
(1):
http://www.kksou.com/php-gtk2/articles/display-directory-tree-using-GtkTreeView---Part-5---a
dd-context-sensitive-popup-menu-on-right-mouse-click.php
(3):
http://www.kksou.com/php-gtk2/articles/display-a-tree-structure-with-connecting-lines.php
For (2) and (4), I'll try to come out with examples for them.
Regards,
/kksou
--
View this message in context: http://www.nabble.com/Help-with-treeview-tf4157259.html#a11840
123
Sent from the Php - GTK - General mailing list archive at Nabble.com.
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Conceicao Fernando
Kksou
Kksou
Bob Majdak Jr
|