Re: XForms: ?

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 4 Jun 98 08:42:01 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> , but I cannot do this:
>
> fl_set_object_label (obj->prompt, test);
>
> in an input field callback. obj is of type FL_OBJECT *.

This is wrong C code.

Each object points back to its parent form and the parent form points
to the FD_* object (via an appropriate type cast). From there, you
can get to any object in the form.

Refer to the manual for details, especially the FD_any struct.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/