Next Previous Up Top Contents Index

1 CAPI Reference Entries

editor-pane

Class

Summary

An editor pane is an EMACS-style editor that has all of the functionality described in the LispWorks Guide To The Editor.
Superclasses

output-pane

Subclasses

interactive-pane
collector-pane

Slots

text

The text in the editor pane.

enabled

Ift the editor pane will accept input from the mouse and keyboard.

buffer-name

The name of the editor buffer.

Accessors

editor-pane-text
editor-pane-enabled

Description

The accessoreditor-pane-text is provided to read and write the text in the editor buffer. The accessoreditor-pane-enabled is used to enable and disable the editor (when it is disabled, it ignores all input from the mouse and keyboard).
The editor-pane stores text in buffers which are uniquely named, and so to create an editor-pane using an existing buffer you should pass the buffer-name. To create an editor-pane with a new buffer, pass a buffer-name that does not match any existing buffer. If buffer-name is not passed, then the editor-pane uses some existing buffer.
Example

(capi:contain (make-instance 'capi:editor-pane
                             :text "Hello world"))

(setq editor (capi:contain (make-instance 'capi:editor-pane :text "Hello world" :enabled nil)))

(setf (capi:editor-pane-enabled editor) t)

(setf (capi:editor-pane-text editor) "New text")

See also

call-editor
modify-editor-pane-buffer

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker