Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## set-text

Arguments: (window text-edit-pane) string

Sets the contents of window (a `text-edit-pane`) to be string. For line breaks, the string may contain either single #\Newline or #\Linefeed characters, or #\Return #\Linefeed (CR/LF) pairs.

The other way to replace all of the text in a `text-edit-pane` (assuming that it is not associated with a `multi-line-editable-text` control) is to call clear-page on the pane and then write text to it with standard Common Lisp stream output functions (like format).

Note: set-text would actually work when called on certain other objects, but is too low-level for application use for all but `text-edit-pane`. Specifically, set-text would also set the contents of a `multi-line-editable-text` control, but (setf value) should be used instead so that the control's current value will reflect the current string. Similarly, set-text would set the title of a `frame-window` (as well as other things), but (setf title) should be used instead so that the window will remember the title.

See also get-text, which returns (as a string) the text in a text-edit-pane and in text controls.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version