mlp@ardent.UUCP (Mark Patrick) (06/06/88)
I am trying to use XtGetValues to get the current length of a string in a
text widget. I am using the following code fragment:
n=0;
XtSetArg(args[n], XtNlength, &length); n++;
XtGetValues(w, args, n);
printf("length is %d\n", length);
If I set the variable `length' to -1 before this fragment the printf statement
allways prints -1. What am I doing wrong?
Mark Patrick
Ardent Computer
uunet!ardent!mlp