Re: XForms: reading back button labels?

Steve Lamont (
Tue, 21 Oct 97 06:17:32 PDT

To subscribers of the xforms list from (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 */

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.)


To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: