> Is there any way to, for example, first create a few menu 
> items then create
> a menu and then add each menu item previously created to this 
> menu then
> create a menu bar and add to it the menu previously created 
> (with all the
> menu items) - all dynamically on heap - instead of defining 
> arrays. I don't
> see any functions like Menu::add(MenuItem *mi), 
> MenuBar::add(Menu *m), etc.
> All functions take pointers to char strings. Any help?

Um, this is C++, so you do know that the Fl_Menu_ widgets all inherit
the methods of their parents, right?

Anyway, did you look at the examples Greg suggested? Several of those
demonstrate dynamic menu creation.

Try this for example:

http://www.seriss.com/people/erco/fltk/#Menu_ChangeLabel 






SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to