set-editor in editor-canvas%
Sets the editor that is displayed by the canvas, releasing the current
editor (if any). If the new editor already has an administrator that
is not associated with a editor-canvas%, then the new
editor is not installed into the canvas.
( -> void
send an-editor-canvas set-editor edit redraw?)
edit : text% or pasteboard% object or #f
redraw? = : boolean#t
If redraw? is #f, then the editor is
not immediately drawn; in this case, something must force a redraw
later (e.g., a call to the
on-paint method).
If the canvas has a line count installed with
set-line-count, the canvas's minimum height is adjusted.