# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :
--- Hugh Gibson <hugh@mrao.cam.ac.uk> wrote:
> # To subscribers of the xforms list from Hugh Gibson
> <hugh@mrao.cam.ac.uk> :
>
> HI,
> 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
> identify
> which slider has been tweaked.
>
> e.g. def
>
> FL_OBJECT *vslider[16];
>
> 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],3) or
simply fl_call_object_callback(vslider[3]);
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuhs.mil or see
> http://bob.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://world.std.com/~xforms
> List Archive: http://bob.usuhs.mil/mailserv/list-archives/
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
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:41:38 EST