Hi,
No need for a dialog. You can show a context menu by simply calling IupPopup(menu). That function will return only after the menu item is processed or the menu loses its focus. So you can destroy it right after the call. Best Regards, Antonio Scuri From: harry gotterwald [mailto:brachyo...@gmail.com] Sent: segunda-feira, 15 de agosto de 2011 16:38 To: iup-users@lists.sourceforge.net Subject: [Iup-users] Right-Click Context Menu Are there any sane ways to implement context menus with iup? I'm looking for a way to show a menu on right click and hide/destroy the menu when it loses focus but the obvious approach (Showing a borderless dialog and using the killfocus_cb event to destroy it) doesn't work like i had hoped(the menu loses focus immediately), I'd prefer to keep all of the code for the menu inside of the control showing the menu.
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users