[Gtk-sharp-list] Catch a double click events... when the example doesn't work...

fpiraneo fpiraneo at iface.ch
Tue Mar 9 06:26:14 EST 2010


Hi all,

I'm trying to catch a double click event on a simple pushbutton; looking
around I've found the example on:

http://www.mono-project.com/GtkSharpBeginnersGuide#Step_6:_Adding_Events

...but unfortunately this piece of code doesn't run! Better: syntactically
correct but the event handler is not called when I click on a pushbutton.

Now, I'd like peoples in the mono team revise the example but I'm asking
also if you have some example or interesting link where I can take some
inspiration.

Actually my click events are handled like that:

------------
Button Template = new Button(sButtonText);
...
Template.Clicked += onButtonClick;
...
private void onButtonClick(object sender, EventArgs args)
{
     ....some code...
}
------------

Thank a lot!
Francesco
-- 
View this message in context: http://n4.nabble.com/Catch-a-double-click-events-when-the-example-doesn-t-work-tp1585826p1585826.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list