Re: general php-gtk questions

From: Date: Wed, 14 Feb 2024 13:40:18 +0000
Subject: Re: general php-gtk questions
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1036@lists.php.net to get a copy of this message
> On Tue, 20 Mar 2001, jasonr@argia.net wrote: > > I want to be able to create a popup window (preferable through a > > reusable function) and have the program wait until that window is > > exited before it continues executing code, so that the result of that > > window can be used (ie. "1" if ok is pressed, "0" if cancel is > > pressed). how would this be done? > > Call set_modal(true) on the window. This will force the user to choose > ok/cancel. I am already doing this. the problem is that after i call the function to display the new window, it returns to the gtk::main loop and my place is forgotten. is my only option to dynamically create the function that makes the new window, because i want it to do different things each time it is called and for each button on it? > > > Also, is there any way to make a snipet of code repeat endlessly after > > the interface is drawn, yet still have the interface respond to input? > > i am thinking more along the lines of hte "timer" in vb, but it doesnt > > really matter how the code gets executed (inifinite loop or > > interrupt). > > You want to get callbacks while Gtk::main() is running or while other > PHP code is running? > while gtk::main is running, as i understand it. think of a monitor or stats program of some sort that needs to update its display every x seconds, and you have a pretty good idea of what i want to do :) > -Andrei > * George Orwell was an optimist. *

« previous php.gtk (#1036) next »