[Mono-docs-list] help - sample events
Mike Kestner
mkestner at novell.com
Mon Aug 7 09:15:49 EDT 2006
On Mon, 2006-08-07 at 10:32 +0100, Mariusz Mart wrote:
Add this:
[GLib.ConnectBefore]
> private void onBottonClick(object o,ButtonPressEventArgs args){
> System.Console.WriteLine("klik");
> Application.Quit();
> }
> }
Look Gtk# Faq item 3.3:
http://gtk-sharp.sourceforge.net/faq.html#3.3
The default behavior of Gtk.Button is to emit Clicked events on button
presses. If all you want to do is respond when a user clicks the
button, you should connect to that event.
--
Mike Kestner <mkestner at novell.com>
SUSE® Linux Enterprise 10
Your Linux is ready™
www.novell.com/linux
More information about the Mono-docs-list
mailing list