[Gtk-sharp-list] Gtk.Timeout parameters
Leo Spalteholz
leo@thewoodpecker.ca
Mon, 27 Oct 2003 07:57:55 +0000
I'm trying to use a Gtk.Timeout but can't figure out how to use the Add()=20
function. =A0The second argument calls for a Gtk.Function that will be=20
called every interval until the function returns false. =A0I have this:
Gtk.Timeout.Add(2000, CheckButton);
private bool CheckButton() {}
But I get the error:
Method `OpenSpeechSystem.TextScreen.CheckButton()' is referenced without=20
parentheses
How do I pass the reference to the CheckButton function?
I thought it was the same as when your're creating a new EventHandler but=20
apparently not.
Thanks for any help,
~leo