Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version

set-text

Arguments: widget value

Sets the contents of 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-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version