LispWorks CAPI User Guide > 4 Creating Common Windows > 4.3 Displaying and entering text


4.3.3 Editor panes

Editor panes can be created using the editor-pane element.

(setq editor 
      (make-instance 'editor-pane 
                     "some text in an editor pane"))
(contain editor)

The Editor tool in the LispWorks IDE, as described in the LispWorks IDE User Guide and the LispWorks Editor User Guide , uses editor-pane .

Figure 4.5 An editor pane

Note: when you supply the :buffer-name initarg and/or the :text initarg with positive length, then the editor-pane initially displays a new buffer containing that text and/or with the specified buffer name. If you do not supply one of those arguments, then the editor-pane displays some existing editor buffer chosen at random. See the LispWorks CAPI Reference Manual for details.

The cursor in an editor-pane blinks on and off under the control of the editor-pane-blink-rate mechanism.

An editor-pane can be made non-editable by users with the initarg :enabled :read-only , or completely disabled with :enabled nil .

LispWorks CAPI User Guide (Unix version) - 22 Dec 2009