[Gtk-sharp-list] creating a context menu

Clark Endrizzi cendrizzi at gmail.com
Sun Jan 8 01:52:58 EST 2006


I think you're on to something.

I've been searching around in the Tomboy code and I think I've almost
figured it out.  In the widget class, which is inhereted by a lot of
stuff, there is the event PopupMenu.  That I believe is the key, but
when I assign a function to it and do a simple Console.Write to let me
know it's getting invoked, it doesn't ever write to the console.  So I
don't know if I have to do something to enable it or what, I can't
seem to find anything in Tomboy to suggest I have to.  Or perhaps it
could be because I'm using treeview and there is something special
about that (that widget, while working for me, is very confusing).  I
guess I'll wait to hear from a GTK guru??  Please!

P.S.  Maybe we newer guys should make notes on these common issues as
I think having to go through other programs is a bit much for a lot of
people.  While the documentation is pretty complete it doesn't provide
an easy way to know how to do certain things (with all the different
functions it is quite bewidering).  This kinda stuff needs to be in
the wiki, so I think we could really help out there.

Thanks,
Clark

On 1/7/06, Buddy Lindsey <percent20 at gmail.com> wrote:
> While I don't know how to do it i was looking around and from what i can
> tell for tool bars there is a
>
> PopupContextMenu event
>
> Maybe if that is in the toolbar there is a popupcontextmenu event for other
> things as well.  just a thought of something to look at.  I will continue to
> see what I can dig up after i get home later from work.
>
>
> On 1/7/06, Clark Endrizzi <cendrizzi at gmail.com> wrote:
> > I would love to know this as well.
> >
> >
> >
> >
> > On 1/7/06, radu < kenjiru.ro at gmail.com> wrote:
> > > How can I create a context menu? For example, when I right click on a
> > > widget to get a pop-up menu.
> > > _______________________________________________
> > > Gtk-sharp-list maillist  -   Gtk-sharp-list at lists.ximian.com
> > >
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> > >
> >
> >
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> >
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> >
> >
>
>
>
> --
> Buddy Lindsey
> http://www.buddylindsey.com
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>


--
-Clark Endrizzi


More information about the Gtk-sharp-list mailing list