Re: [PHP-GTK] Re: general php-gtk questions

[email protected] (Markus Fischer) Tue, 7 Aug 2001 17:21:11 +0200
Newsgroups php.gtk
Message-ID <[email protected]>
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: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail:         [email protected]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0