Re: if(!ishidden) {

From: Date: Wed, 15 Feb 2006 19:03:36 +0000
Subject: Re: if(!ishidden) {
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6740@lists.php.net to get a copy of this message
Brian Stumm wrote:
Sorry if tthis info is easy to find, I'll admit I didn't search very hard. How do you guys go about checking if a GtkWindow (or other widget) is hidden or shown? By that I mean the $window->show() and $window->hide() functions. Basically if the window is already being "shown" then I dont want to call $window->show() again.
You can check the widget flags and see if the visible flag is set: $window = new GtkWindow(); var_dump($window->flags() & Gtk::VISIBLE); // int(0); $window->show_all(); var_dump($window->flags() & Gtk::VISIBLE); // int(256); -- Scott Mattocks http://www.crisscott.com

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