Re: Sticky Cascading Menus?



The behavior depends on what event was used to trigger the popup menu.
For instance in the Gimp, it's a right mouse button release that triggers
the popup and so since the mouse buttons are already released, the menu
stays up until you click out of it.  Does that make sense?  gtk_menu_popup
has a parameter to tell it what buttons were involved with the popup, so
if you popup on a button press event and pass that button on to the
gtk_menu_popup, then it will require that button to remain pressed to keep
the menu up.  (IE releasing over an item selects it).  I think this is the
way it works.  So you should be able to get the popup to work as you want
it too.

Michael

On Wed, 15 Aug 2001, Chris Quinn wrote:

Havoc Pennington wrote:


GTK never requires you to hold down the button, AFAICS.
The menu only comes down on button release if you have a menuitem
currently selected.

Havoc

I forget to mention it's a popup menu!
Does that alter things?

C.

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






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