# To subscribers of the xforms list from "T.C. Zhao" <firstname.lastname@example.org> :
--- Hugh Gibson <email@example.com> wrote:
> # To subscribers of the xforms list from Hugh Gibson
> <firstname.lastname@example.org> :
> I'm using the
> fl_call_object_callback(FL_OBJECT *ob)
> routine in my code without problems (Linux xforms 0.89 and Fdesigner)
> However, I have several objects (like sliders) which share the
> SAME callback function, but with different data parameters to
> which slider has been tweaked.
> e.g. def
> FL_OBJECT *vslider;
> OK, this all works fine....
> Now, from a different part of the programme, I want to use the
> fl_call_object_callback(FL_OBJECT *ob) to tweak the slider,
> but now, I need to specify the passed data too, and there is no
> room for the data entry in the fl_call_object call.
> I have found that I can call the callback function directly... e.g.
> set_voltage(vslider, 3); (set_voltage is the callback, and
> vslider is the xforms object)
either as spl suggested, set_voltage(vslider,3) or
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
To unsubscribe, send the message "unsubscribe" to
email@example.com or see
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed Feb 02 2000 - 22:42:39 EST