A keyword specifying the operation to perform.
The value or values to use, when the operation is setting something.
Selects all the text.
Returns as multiple values the bounding indexes of the selection. result is the start (inclusive) and result2 is the end (exclusive). If there is no selection, both values are the index of the insertion point.
Undoes the last editing operation. Note that, after typing, it is the whole input, rather than a single character, that is undone. The
operation may be repeated successively, to undo previous editing operations in turn.
Note: with RichEdit 1.0,
does not work repeatedly - it only undoes one previous editing operation. See rich-text-version
Undoes the effect of the last
operation may be repeated successively, to cancel the effect of previous
operations in turn.
Note: with RichEdit 1.0,
does not work. See rich-text-version.
Returns a value indicating the word wrap, which can be the keyword
can also be the keyword
or a CAPI printer object, meaning that the text wraps according to the width of the window or the printer.
Sets the word wrap. The argument can be as described for
, and additionally it can be the keyword
, meaning the current-printer.
is the value of a boolean modified flag. This flag can be set by the
operation. Also, editing the text sets it to true.
Sets the modified flag. The argument is a boolean.
Saves the text to a file. Details below.
Loads the text from a file. Details below.
is true, only the current selection is saved. If
, all the text is saved. The default value of
and there are two further allowed values,
. These are like
except in the way they deal with COM objects. See the documentation for SF_RTFNOOBJS and SF_TEXTIZED in the EM_STREAMOUT entry in the MSDN for details. When saving with
is true, then keywords that are not common to all languages are ignored. With other values of
has no effect.
is true, the unselected text is preserved. If there is a selection, the new text replaces it. If there is no selection, the new text is inserted at the current insertion point. If
, all the text is replaced. The default value of
, meaning that the RTF signature is relied upon to indicate a Rich Text Format file. If
is true, then keywords that are not common to all languages are ignored.
:text (format nil "First paragraph.~%Second paragraph, a little longer.~%Another paragraph, which should be long long enough that it spans more than one line. ~%" ))))
(capi:rich-text-pane-operation rtp :set-selection 9 18)
(capi:rich-text-pane-operation rtp :paste)