Re: Exmple GtkContainer Code PLEASE!

From: Date: Wed, 23 May 2007 07:52:42 +0000
Subject: Re: Exmple GtkContainer Code PLEASE!
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7830@lists.php.net to get a copy of this message
Adz07 wrote: > I am trying to use set_focus_chain() on my form but PHP keep throwing this > error: > Fatal error: Non-static method GtkContainer::get_focus_chain() cannot be > called statically in test.php on line 11 > > Line 11 is like so: > $list = GtkContainer::get_focus_chain('logon'); > > Is my code wrong?? > Suppose your container is $vbox. You need to use $vbox->set_focus_chain(), instead of GtkContainer::set_focus_chain(). I have just written a couple of examples that illustrate the use of set_focus_chain(). http://www.kksou.com/php-gtk2/articles/change-tab-order---Example-1.php http://www.kksou.com/php-gtk2/articles/change-tab-order---Example-2.php http://www.kksou.com/php-gtk2/articles/change-tab-order---Example-3.php http://www.kksou.com/php-gtk2/articles/change-tab-order---Example-4.php Hope you find them useful. Regards, /kksou p.s. You might want to take a look at Example1 first. I have listed some "rules" there to follow to get the tab orders to work. -- View this message in context: http://www.nabble.com/Exmple-GtkContainer-Code-PLEASE%21-tf3801301.html#a10759080 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7830) next »