> 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.
Fl_Menu_Item menu_Screen[] = {
{" Default Window", 0xff09, (Fl_Callback*)cb_Screen_Default, 0, 12, 0, 0, 11,
7},
{" Reduced Graphics", 0x77, (Fl_Callback*)cb_Screen_Reduced, 0, 8, 0, 0, 11,
7},
{" Full Screen Graphics", 0x71, (Fl_Callback*)cb_Screen_Full, 0, 136, 0, 0,
11, 7},
{" 1 Viewport", 0x31, (Fl_Callback*)cb_Split_1, 0, 8, 0, 0, 11, 7},
{" 3 Viewports", 0x33, (Fl_Callback*)cb_Split_3, 0, 8, 0, 0, 11, 7},
{" 4 Viewports", 0x34, (Fl_Callback*)cb_Split_4, 0, 136, 0, 0, 11, 7},
{"Logos", 0x6c, (Fl_Callback*)cb_Logos, 0, 0, 0, 0, 11, 7},
{0}
}
Above is the actual code generated by Fluid for my pulldown menu. The 4th menu
item, labeled " 1 Viewport", refers to a callback called "cb_Split_1". How do I
"invoke the callback", from within the callback definition panel of another
widget? What is the exact syntax? Thanks.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk