Re: GtkNotebook

From: Date: Thu, 09 Feb 2006 15:50:49 +0000
Subject: Re: GtkNotebook
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6694@lists.php.net to get a copy of this message
Ok, It works ! Thanks ! Breizh. Scott Mattocks a écrit :
Breizh Micro Services wrote:
Hi, I have a problem with a GtkNotebook. When I use the append_page or insert_page function into the main program, it works. But when I use them into another function the new page does not show on the screen. It seems to create page into memory but does not show. I try to use the show function but it also does not work. What's wrong ? My code : $notebook = new GtkNotebook(); $notebook->append_page(new GtkLabel("title"), new GtkLabel("content")); --> it works function test(){ global $notebook; $notebook->append_page(new GtkLabel("title"), new GtkLabel("content")); } --> it does not work
A notebook page is just a container. Make sure you call show_all to show all the page's children.


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