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

Re: popup menu



Sean Nichols wrote:

> Ken,
>
>    I'm not sure I entirely understand what you're trying to do.
>
>    Are you trying to get a popup /menu/ to appear under the cursor (ie: when
> the user right-clicks on a widget), or are you just trying to popup a
> tooltip (basically a temporary, floating label that explains what the widget
> does) when you hover the mouse over the widget for a few seconds?
>
>    Either way, while I'm sure that what you want can be done using a popup
> menu, there are already built-in functions to do both of those.
>
>    Also, both are explained (fairly well) in the Gtk+ tutorial. The first
> (popup menu) is explained (albeit with a bit of overhead) in chapter 13,
> http://www.gtk.org/tutorial/gtk_tut-13.html.
>
>    The second (tooltip) has its own special GtkObject*, which is explained
> very succinctly (no example, but it's really easy; you don't need one) in
> Chapter 9.3, http://www.gtk.org/tutorial/gtk_tut-9.html#ss9.3.
>
>    Hope one of those is what you want.
>       - Sean
>
> -----Original Message-----
> From: Ken Steen [mailto:ksteen@earthlink.net]
> Sent: Thursday, June 24, 1999 13:37
> To: gtk-app-devel-list
> Subject: popup menu
>
>     Where can I find source code using  a popup menu?  I'm fairly new
> to  c and I can't figure out the proper way to get a menu to popup next
> to the mouse pointer by reading  gtk header files.
>
> Thanks,
> Ken
>
> --
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.
>
>         Mailing list concerns should be mailed to <listmaster@redhat.com>

    Thanks for your help.  A popup menu was what I was looking for and I just
kimmed right past it when I looked at the tutorial..  The gtk_menu_popup() was
what I was looking for.
Thanks again,
Ken



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