bazavan@hpcilzb.HP.COM (Valentin Bazavan) (12/04/90)
Should be XmString label (not XmString *label, and not char *label): XmString label; . XtSetArg(args[0], XmlabelString, &label); XtGetValues(w, args, 1); If you want to retrieve the text part of "label," you have to do a little more work. For instance, if "label" was created by XmStringCreateLtoR with the default character set (XmSTRING_DEFAULT_CHARSET), then char *s; XmStringGetLtoR(label, XmSTRING_DEFAULT_CHARSET, &s); will set "s" to point to the text part of "label." You can use now "s" like any regular null terminated string. E.g.: char ss[100]; strcpy(ss, s); or printf("%s\n", s); etc. Valentin Bazavan vbazavan@hpdtc.hp.com