Re: Re: general php-gtk questions
| From: | Markus Fischer | Date: | Tue, 07 Aug 2001 15:21:11 +0000 |
| Subject: | Re: Re: general php-gtk questions | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2556@lists.php.net to get a copy of this message | ||
Please note that you need to
return true;
and the end of myrepeatfunction() if you want to be called
further.
- Markus
On Tue, Aug 07, 2001 at 05:06:17PM +0200, Joris Kluivers wrote :
> > 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).
>
> I don't know about your first question, but i can answer this one. You
> should use a recursive function something like this:
>
> function myrepeatfunction()
> {
> // some code
> }
> // add a timeout so it will be used every X milliseconds
> gtk::timeout_add( X, 'myrepeatfunction');
>
> Joris Kluivers
>
>
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0