I don't know about "easy", but there is a workaround of sorts...
When you want to add a menu item with slashes, but not have the slashes "magically" interpreted as submenu dividers, then you can do something like this:
- Add your new item with a dummy name that has no slashes
- find the item in the menu
- change its label, using the full string including the slashes
So it turns out that once the item exists in the menu hierarchy, changing its label *does not* then insert new submenus for slashes...
menu_bar->add("Next/test");
Fl_Menu_Item *p;
p = (Fl_Menu_Item*)menu_bar->find_item("Next/test");
if ( p ) p->label("add/entry/with/slash");
I don't know if that's any use for you?
Selex ES 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.
********************************************************************