Mike Werner wrote:
> I love Fluid and use it a lot. Have a simple question about syntax. Say I
> have a menu called 'Screen', and a menuitem underneath it called 'Split_3'.
> Split_3 has a fairly involved callback function. I have another button (call
> it 'Mike') in the user interface from which I'd like to execute Split_3's
> callback. What would the syntax be for calling the Split_3 callback from
> within the Fluid callback definition area for Mike? I tried
>
> Screen->Split_3->do_callback()
>
> and some similar things. But nothing would compile. Thanks.
Just configure both to use the same callback, eg:
Split_3 Callback: SomeFunction_CB
Mike Callback: SomeFunction_CB
Don't put in parens or semicolons or anything..
just the callback's name.
You can either pass userdata to the callback so that
it knows which menu item invoked it, or possibly better,
just look at the widget's label to determine which item
invoked the callback.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk