Greg Ercolano wrote:
>> 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.
BTW, another way to do this is to give the menu item for "1 Viewport"
a name, ie. in fluid open the Properties editor for the menu item
and give it a "Name:", such as item_1viewport.
This should make the item accessible with the name item_1viewport
in your code, which you can then reference in other callbacks, eg:
item_1viewport->do_callback(w);
..again, where 'w' is the pointer to your menu widget.
Or, if you know your callback doesn't make use of that first
argument to the callback, you can just make that zero, eg:
item_1viewport->do_callback(0);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk