A view is a window-based version of an editor. It is implemented as a window that displays a single editor object and resizes this object if the window is resized. A view delegates to its editor object.
Inheritance precedes delegation in PCE's message passing primitives. For many methods both defined on class window and class editor the method defined on class editor describes the desired behaviour. Most of the behaviour explicitly defined on class view overrules methods inherited from window and passes them explicitly to the related editor object.
<-master
of the editor. The displayed editor may be changed after the view has
been created. Note that an editor may also switch from displayed text
using‘editor
view->text_buffer’.
->clear.printf()) a string and insert it at the caret in
the editor. See editor->format..size
. When no editor is specified, a default editor is created. Using a
user-defined editor is useful to create window versions for subclasses
of class editor. See
also view->editor
and
view<-create_editor.
editor ->normaliseMake range of characters visible editor ->scroll_toScroll to character index
<-editor.
See editor->selection.
Inherits description from: view<-selected
->free’s
the related editor
object, after which window->unlink
is invoked.
->initialise
if no editor argument was specified. May be redefined to create a
suitable editor.
editor <-selectedGet selected string editor <-selectionPoint object with start and end editor ->selectionSpecify selection start end end