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 stores text in buffers which are uniquely named, and so to create an editor using an existing buffer you should pass thebuffer-name. If abuffer-name is not passed, then the editor creates a buffer with a unique name and uses that.

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")

Example File

capi/elements/editor-pane.lisp

See Also

call-editor
modify-editor-pane-buffer


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker