[Gtk-sharp-list] creating a context menu
Scott Ellington
scottellington at comcast.net
Sun Jan 8 01:14:13 EST 2006
This treeview subclass catches a ButtonPress event for a right click and
creates the context menu:
http://forge.novell.com/modules/xfmod/svn/svnbrowse.php?uri=filedetails.php%3Frepname%3Dappomattox%26path%3D%252Ftrunk%252FAppomattox%252Fsrc%252FAppomattox.Gui.Components%252FLayerDirectory.cs
This menu subclass is the context menu:
http://forge.novell.com/modules/xfmod/svn/svnbrowse.php?uri=filedetails.php%3Frepname%3Dappomattox%26path%3D%252Ftrunk%252FAppomattox%252Fsrc%252FAppomattox.Gui.Components%252FLayerContextMenu.cs
Good Luck!
Scott
On Sat, 2006-01-07 at 23:52 -0700, Clark Endrizzi wrote:
> 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
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--
Scott Ellington <scottellington at comcast.net>
More information about the Gtk-sharp-list
mailing list