testalucida schrieb:
> In the meantime I found out how to work with add:
>
> int n = 3;
> Fl_Menu_Item *pop = new Fl_Menu_Item[n];
> pop->add( "First item", 0, 0, 0, 0 );
> pop->add( "Second item", 0, 0, 0, 0 );
> ..
> pop->popup( 10, 10, 0, 0, 0 );

That's a really funny thing, I would never minded that to work!

You should consider that a menu *item* is ment to be added to a menu, 
not to be a menu itself. So you can add Fl_Menu_Items dynamically to 
every Fl_Menu, e.g. Fl_Menu_Bar, Fl_Menu_Button or others, derived from 
Fl_Menu.

> I think I'll be using Fl_Menu_Button.

I think, this is the way of using, developers thought of. :o)
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to