(make-object canvas:basic-mixin% parent editor style scrolls-per-page) -> canvas:basic-mixin% object
parent : frame%, dialog%, panel%, or pane% object
editor = #f : text% or pasteboard% object or #f
style = null : list of symbols in '(no-hscroll no-vscroll hide-hscroll hide-vscroll)
scrolls-per-page = 100 : exact integer in [1, 10000]
The style list can contain the following flags:
- 'no-hscroll -- disallows horizontal scrolling
- 'no-vscroll -- disallows vertical scrolling
- 'hide-hscroll -- allows horizontal scrolling, but hides the horizontal scrollbar
- 'hide-vscroll -- allows vertical scrolling, but hides the vertical scrollbar
While vertical scrolling of text editors is based on lines,
horizontal scrolling and pasteboard vertical scrolling is based on a
fixed number of steps per horizontal page. The scrollsPerPage
argument sets this value.
If a canvas is initialized with #f for editor, install an
editor later with
set-editor.