[Gtk-sharp-list] TreeView Events
Fredrik Nilsson
jymdman at gmail.com
Fri Nov 24 12:20:16 EST 2006
Hi.
Do it like this and it should work:
[GLib.ConnectBefore] // <---- add this line!!
public void test (object o, ButtonPressEventArgs args)
{
/Fredrik
fre 2006-11-24 klockan 18:15 +0100 skrev Toño:
> Hi!
> I have an issue with my Gtk list. I have derivied a list from TreeView.
> Mi problem is that I can't capture rigth button event to show my popup
> menu. I do this:
>
> .
> .
> .
> this.ButtonPressEvent += new ButtonPressEventHandler(test);
> .
> .
> .
> public void test (object o, ButtonPressEventArgs args)
> {
> Gdk.EventButton eb = args.Event;
> Console.WriteLine("Clicking");
> if (eb.Button == 3) { // Right click
> Console.WriteLine ("Right click");
> }
> }
>
> Nothing appears in the console. I hope you can help me.
>
> Kind regards
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
More information about the Gtk-sharp-list
mailing list