ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
Re: [PHP-GTK] Help with treeview
by Bob Majdak Jr other posts by this author
Jul 27 2007 10:49AM messages near this date
Re: [PHP-GTK] Help with treeview | [PHP-GTK] Touble clearing GtkComboBoxEntry text list
� wrote:
>  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.

not sure if there is a shorter way for this, if i recall correctly i tried several things an
d this 
is what worked the best:

this-> connect('button-press-event',array($this,'on_click'));
public function on_click($widget,$event) {
	if($event-> button == 3) {
		//. popup() a GtkMenu
	}
}

>  2. How can I change the identation(increase the distance to the right
>  that a child is from the parent?

i do not know.

>  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?

i think you would have to write your own gtkrc and force it upon the application, because th
is is 
determined by the users theme. however in my opinion you probably should not be over ruleing
 their 
theme (especially linux users) because they expect the application to look a certain way lik
e others 
using gtk.

>  4. How can I toggle the state? I mean if a row is colapsed, i want
>  expand and if expanded I want to collapse?

there are expand methods but gtk.php.net seems to be down, i'll reply with those when i can 
get in 
(unless you find it first)

- bob.

-- 
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved