int fm_trackPopupMenu (int hMenu, int type, int x, int y, int style)
Returns the number of the menu item (uItem) that was selected by the user (but only if you use 0 or TPM_RETURNCMD or the style parameter). If no menu item was selected, zero is returned.
Queries a menu for the last selected item by the user.
%ffp ctl[0]: PUSHBUTTON, "Click Me!" OnCtl(n): { if (n==0 && e == FME_CLICKED){ int menu=0; menu = createPopupMenu(); insertMenuItem(menu, 1, "Do This",MFS_ENABLED , NULL); insertMenuItem(menu, 2, "Do That",MFS_ENABLED | MFS_DEFAULT, NULL); insertMenuItem(menu, 3, "Do Nothing",MFS_ENABLED, NULL); Info("Selection: %d", trackPopupMenu (menu, 1, 0,0,0) ); destroyMenu(menu); } return false; }