Lines Matching defs:text
4 ** text.c
6 ** How to make a text widget that returns a string when the cursor
39 ** Inside w (a form), creates an editable text widget of width width. The
43 ** the widget, the widget does the appropriate thing with the text
45 ** Returns the text widget which the user will edit.
74 static Widget text; /* the text widget */
102 /* text uses type to find out what its string is */
125 text = XtCreateManagedWidget("text", asciiTextWidgetClass,w,
131 XtOverrideTranslations(text,XtParseTranslationTable(translationtable));
133 return(text);
165 ** Changes the text in the text widget w of type type to newtext.
171 XawTextBlock text; /* the new text */
172 XawTextPosition first, last; /* boundaries of the old text */
173 String oldtext; /* the old text */
183 text.firstPos = 0;
184 text.length = strlen(newtext);
185 text.ptr = newtext;
186 text.format = FMT8BIT;
188 /* Find the old text, so we can get its length, so we know how
198 /* Replace it with the new text. */
200 XawTextReplace(w, first, last, &text);