Mike Werner wrote:
> [..] A->B->do_callback() [..where A is a pulldown menu, and B is a menu
> item..]
You might want something like:
Fl_Menu_Item *item = (Fl_Menu_Item*)A->find_item("B");
if ( item ) item->do_callback();
find_item() will find the menu item by its menu pathname.
For instance, if 'B' is really the File -> Edit menu item,
then you'd use: find_item("File/Edit");
However, you mention:
> [..] using Fluid 1.0.11 [..]
Hmm, that's pretty old.. almost 8 years or more, I think.
I don't know if find_item() was available back then.
In which case you'd probably have to walk the menu() array
yourself to find item "B" (which is what find_item() does)
and then invoke the callback.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk