Re: XForms: reading back button labels?

jan@saw.rwth-aachen.de
Tue, 21 Oct 1997 18:24:05 +0200

To subscribers of the xforms list from jan@saw.rwth-aachen.de :

Thanks for opening my eyes. Now everything works great.
Thanks!! Jan

>To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
>
>> Question: is there any way/function for reading back the label of a button?
>> In my design I wont to interactivly change the label of sliders. Therefore I
>> set up a button and change via fl_set_button_label its label in a callback
>> function. It would be easier reading the label back, than saving them
>> elsewhere in a field too.
>
>The label is in the FL_OBJECT structure.
>
>typedef struct flobjs_
>{
> struct forms_ *form; /* the form this object belongs to */
> void *u_vdata; /* anything the user likes */
> long u_ldata; /* anything the user likes */
> [...]
> char *label; /* object label */
> [...]
>} FL_OBJECT;
>
>You are free to read it but you should alter it only with the
>fl_set_object_label() function. (As a Firm Believer in opaque data
>structures, I would rather there be corresponding `fl_get_*()'
>functions for each appropriate `fl_set_*()', BTW.)
>
> 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/
>

_________________________________________________
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/