Re: Popup menu

Espen S Johnsen <[email protected]> 06 May 2006 10:44:39 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
ephrem boudonnet <[email protected]> writes:

> Would you know how to use the function menu-popup?
> I've got a gtk::menu. I can display it an its items if I add it to a
> menubar. But I would like to display it as a contextual menu. I don't
> know what to use as activate-time or parent-menu-shell (it is not
> attached) and parent-menu-item.

The menu-popup function is rather simple to use. Just pass nil (the
default) for activate-time and parent-menu-shell to pop up context
sensitive menus. The callback argument could be used to supply a
function to position the menu, but when looking at the code I see that
this doesn't work in the current code (and shouldn't normally be
necessary). Button is the mouse button which was pressed and
activate-time is the timestamp of the event (zero indicates current
time).

-- 
Espen


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642