> Fl_Menu_Button is probably the better 'more reliable' way to go, > but I could see where using Fl_Menu_Item directly makes sense too, > so that you don't have to tie the popup menu to a particular bit > of widget real estate; you can do it /anywhere/.
hmmm.... In Greg's examples I found this one: http://seriss.com/people/erco/fltk/#PopupMenu It covers exactly how to make a popup menu without Fl_Menu_Button and Fl_Menu_... (but not dynamically) There's one thing left to say concerning my exotic approach: After creating the Fl_Menu_Item array you have to set the label of the Item[0] to NULL: Fl_Menu_Item *items = new Fl_Menu_Item[3]; items[0].label( NULL ); //<<<<<<<<<<<<<<<<<<< items->add( ... ); Otherwise the Fl_Menu_Item::size() method fails. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

