Re: [PHP-GTK] Timer

[email protected] (Markus Fischer)
Newsgroups php.gtk
Message-ID <[email protected]>
On Tue, Jul 31, 2001 at 01:06:04PM +0200, Jonas Delfs wrote : 
> "Markus Fischer" <[email protected]> skrev i en meddelelse
> news:[email protected]...
> 
> > Use gtk::timeout_add( function_name);
> 
> I knew that one - just not how to use it.

Something like

<?php

	function foo() {
		echo "tic\n"; flush();
		return true;
	}

	gtk::timeout_add( 200, 'foo');

	gtk::main();
?>

If in doubt you can always lookup the GTK+ API documentation;
most of the time its pretty self-describing.

- markus

> 
> > The functions return value control wether the timeout starts
> > again or not (read: true or false);
> 
> Can you give a little eksample in how to use it for my need?
> 
> --
> Mvh./Best Regards | Jonas Delfs, http://delfs.dk
> 
> "hehe ikke set en standart i min kode før, hvad er det for nogle dimser?" -
> X
> 
> 
> 
> -- 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.