Re: general php-gtk questions
| From: | Andrei Zmievski | Date: | Tue, 20 Mar 2001 21:25:02 +0000 |
| Subject: | Re: general php-gtk questions | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1035@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.
> 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?
-Andrei
* George Orwell was an optimist. *