[Gtk-sharp-list] TreeView Events
    Toño 
    ikaparamono at gmail.com
       
    Fri Nov 24 12:15:31 EST 2006
    
    
  
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
    
    
More information about the Gtk-sharp-list
mailing list