[Mono-docs-list] help - sample events

Mariusz Mart mamart at novell.pl
Mon Aug 7 10:31:30 EDT 2006


You are great! :))))))))
Thank a lot!!

Such things should  be in Monkey Guide!
>>> Mike Kestner <mkestner at novell.com> 08/07/06 3:15 PM >>> 
On Mon, 2006-08-07 at 10:32 +0100, Mariusz Mart wrote:

Add this:

>      private void onBottonClick(object o,ButtonPressEventArgs args){
>         System.Console.WriteLine("klik");
>         Application.Quit();
>      }
> }

Look Gtk# Faq item 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*

More information about the Mono-docs-list mailing list