Re: [gtk-list] Re: right click menu



From: Matthew Cordes <mcorde61@maine.edu>
> I'm a little new to Gtk myself, but I'm quite sure pop-up menus are
> possible using a GtkMenu see the function gtk_menu_popup
> (http://developer.gnome.org/doc/API/gtk/gtkmenu.html#GTK-MENU-POPUP)
> 
> Now all you need to do is test for the right mouse button instead of a
> regular single click (See Pennington's book pg. 203 for info about
> GDK_BUTTON[1-5]_MASK Modifier masks.
> 
> As always I could be wrong and if I am I'm sure someone on this list will 
> provide a rapid correction.

    You are not. I would add that the menu popup issue
    is described both in the tutorial and in the FAQ (Q 5.20 in the
    new http://www.gtk.org/faq (thanks to Tony))

    (you'll have to add the 'is it a right btn click' test,
    that's not a realy big problem)

    Yours, 

    Emmanuel

> 
> -matt
> 
> 
> On Fri, Mar 10, 2000 at 04:03:09PM -0800, david rohde wrote:
> > Hi,
> > Can any one tell me what library the little right click menu comes from that is
> > shown in GNOME, it appears not to be part of GTK+.
> > 
> > Thanks
> > 
> > -- 
> > To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> > 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]