> 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.
What I tend to do is write the callback as a function in its own right (fluid supports that) then call that function from all the places that need the callback, making suitable use of the callback params to get the correct widget and data and so forth. SELEX Sensors and Airborne Systems Limited 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. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

