[Gtk-sharp-list] Re: ButtonPressEvent in 0.15
Ecmel Ercan
ecmel@ercansoy.com
Tue, 13 Jan 2004 18:13:35 +0200
Hello,
Here is what I made (conceptually)
TreeView tv = new TreeView ();
tv.ButtonPressEvent += new ButtonPressEventHandler (ButtonPress);
..
..
private void ButtonPress (object obj, ButtonPressEventArgs args)
{
Console.WriteLine ("Hello");
}
The result is, ButtonPress handler is never called and Hello is never
writeen to the console. With 0.14 this code was working.
On Tue, 13 Jan 2004 00:32:04 +0200, Ecmel Ercan wrote:
> Hello,
>
> I have upgraded from 0.14 to 0.15 and as a result of signal connection
> changes in 0.15 (using connect after) I can not use
> TreeView.ButtonPressEvent.
>
> As far as I can tell, ButtonPressEvent is defined in Widget and handled in
> TreeView but I need to connect to this event in order to do extra things
> in Double-click and Right-click (e.g. pop up a menu).
>
> Any advice is welcome.
>
> Ecmel Ercan
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list