Re: general php-gtk questions
[email protected] ("Joris Kluivers") Tue, 7 Aug 2001 17:06:17 +0200
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
> 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