Re: help - sample events

Mike Kestner <[email protected]>
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
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  <[email protected]>
SUSE® Linux Enterprise 10
Your Linux is ready™
www.novell.com/linux

_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list
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.