[Gtk-sharp-list] ButtonPressEvent in 0.15

Tiago Lima tiago.lima@vianw.pt
Thu, 15 Jan 2004 20:05:57 +0000


Hi,

I've read the FAQ and tried to override the TreeView method, but with no=20
sucesss, not even a segmentation fault... :)

public class MyTreeView : TreeView
{
 =A0 protected override bool OnButtonPressEvent (ref Gdk.EventButton evnt)
=A0 =A0 {
	System.Console.WriteLine("Does not appear!");
=A0 =A0 =A0 =A0 return false;
=A0 =A0 }
}

When it is expected to have this corrected ?
Would you recomend "downgrading" gtk# to 0.14 while this doesn't get fixed?=
=20
What are the differences between the two versions... I think in 0.14 this w=
as=20
working fine...
I am developing an application and now I can't do context menus :(

Please help,
	Tiago Lima

On Tuesday 13 January 2004 17:04, Mike Kestner wrote:
> On Mon, 2004-01-12 at 16:32, Ecmel Ercan wrote:
> > 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).
>
> This question is coming up often enough that I've added it to the FAQ:
>
> http://gtk-sharp.sourceforge.net/faq.html#3.3