9.32 text%
Implements: editor<%>
A text% object is a standard text editor. A
text editor is displayed on the screen through an
editor-canvas% object or some other display.
(->newtext% [(line-spacing_)] [(tab-stops_)] [(auto-wrap_)])text%object
line-spacing=1.0: non-negative real number
tab-stops=null: list of real numbers
auto-wrap=#f: booleanThe
line-spacingargument sets the additional amount of space (in DC units) inserted between each line in the editor when the editor is displayed. This spacing is included in the reported height of each line.See
set-tabsfor information abouttabstops.If
auto-wrapis true, then auto-wrapping is enabled viaauto-wrap.A new
keymap%object is created for the new editor. See alsoget-keymapandset-keymap.A new
style-list%object is created for the new editor. See alsoget-style-listandset-style-list.
Methods
after-change-style (augmentable only)
after-delete (augmentable only)
after-insert (augmentable only)
after-merge-snips (augmentable only)
after-set-position (augmentable only)
after-set-size-constraint (augmentable only)
after-split-snip (augmentable only)
call-clickback
can-change-style? (augmentable only)
can-delete? (augmentable only)
can-insert? (augmentable only)
can-set-size-constraint? (augmentable only)
caret-hidden?
change-style
copy
copy-self-to
cut
delete
do-copy
do-paste
do-paste-x-selection
erase
find-line
find-next-non-string-snip
find-position
find-position-in-line
find-snip
find-string
find-string-all
find-wordbreak
flash-off
flash-on
get-anchor
get-between-threshold
get-character
get-end-position
get-file-format
get-line-spacing
get-overwrite-mode
get-position
get-region-data
get-revision-number
get-snip-position
get-snip-position-and-location
get-start-position
get-styles-sticky
get-tabs
get-text
get-top-line-base
get-visible-line-range
get-visible-position-range
get-wordbreak-map
hide-caret
insert
kill
last-line
last-paragraph
last-position
line-end-position
line-length
line-location
line-paragraph
line-start-position
move-position
on-change-style (augmentable only)
on-default-char
on-default-event
on-delete (augmentable only)
on-insert (augmentable only)
on-new-string-snip
on-new-tab-snip
on-set-size-constraint (augmentable only)
paragraph-end-line
paragraph-end-position
paragraph-start-line
paragraph-start-position
paste
paste-next
paste-x-selection
position-line
position-location
position-paragraph
read-from-file
remove-clickback
scroll-to-position
set-anchor
set-autowrap-bitmap
set-between-threshold
set-clickback
set-file-format
set-line-spacing
set-overwrite-mode
set-paragraph-alignment
set-paragraph-margins
set-position
set-position-bias-scroll
set-region-data
set-styles-sticky
set-tabs
set-wordbreak-func
set-wordbreak-map
split-snip
write-to-file
All Methods
add-canvas from editor<%>
add-undo from editor<%>
adjust-cursor from editor<%>
after-change-style (augmentable only) from text%
after-delete (augmentable only) from text%
after-edit-sequence (augmentable only) from editor<%>
after-insert (augmentable only) from text%
after-load-file (augmentable only) from editor<%>
after-merge-snips (augmentable only) from text%
after-save-file (augmentable only) from editor<%>
after-set-position (augmentable only) from text%
after-set-size-constraint (augmentable only) from text%
after-split-snip (augmentable only) from text%
auto-wrap from editor<%>
begin-edit-sequence from editor<%>
begin-write-header-footer-to-file from editor<%>
blink-caret from editor<%>
call-clickback from text%
can-change-style? (augmentable only) from text%
can-delete? (augmentable only) from text%
can-do-edit-operation? from editor<%>
can-insert? (augmentable only) from text%
can-load-file? (augmentable only) from editor<%>
can-save-file? (augmentable only) from editor<%>
can-set-size-constraint? (augmentable only) from text%
caret-hidden? from text%
change-style from text%
overrides change-style from editor<%>
clear from editor<%>
clear-undos from editor<%>
copy from text%
overrides copy from editor<%>
copy-self from editor<%>
copy-self-to from text%
overrides copy-self-to from editor<%>
cut from text%
overrides cut from editor<%>
dc-location-to-editor-location from editor<%>
default-style-name from editor<%>
delete from text%
do-copy from text%
do-edit-operation from editor<%>
do-paste from text%
do-paste-x-selection from text%
editor-location-to-dc-location from editor<%>
end-edit-sequence from editor<%>
end-write-header-footer-to-file from editor<%>
erase from text%
find-first-snip from editor<%>
find-line from text%
find-next-non-string-snip from text%
find-position from text%
find-position-in-line from text%
find-scroll-line from editor<%>
find-snip from text%
find-string from text%
find-string-all from text%
find-wordbreak from text%
flash-off from text%
flash-on from text%
get-active-canvas from editor<%>
get-admin from editor<%>
get-anchor from text%
get-between-threshold from text%
get-canvas from editor<%>
get-canvases from editor<%>
get-character from text%
get-dc from editor<%>
get-descent from editor<%>
get-end-position from text%
get-extent from editor<%>
get-file from editor<%>
get-file-format from text%
get-filename from editor<%>
get-flattened-text from editor<%>
get-focus-snip from editor<%>
get-inactive-caret-threshold from editor<%>
get-keymap from editor<%>
get-line-spacing from text%
get-load-overwrites-styles from editor<%>
get-max-height from editor<%>
get-max-undo-history from editor<%>
get-max-view-size from editor<%>
get-max-width from editor<%>
get-min-height from editor<%>
get-min-width from editor<%>
get-overwrite-mode from text%
get-paste-text-only from editor<%>
get-position from text%
get-region-data from text%
get-revision-number from text%
get-snip-data from editor<%>
get-snip-location from editor<%>
get-snip-position from text%
get-snip-position-and-location from text%
get-space from editor<%>
get-start-position from text%
get-style-list from editor<%>
get-styles-sticky from text%
get-tabs from text%
get-text from text%
get-top-line-base from text%
get-view-size from editor<%>
get-visible-line-range from text%
get-visible-position-range from text%
get-wordbreak-map from text%
global-to-local from editor<%>
hide-caret from text%
in-edit-sequence? from editor<%>
insert from text%
overrides insert from editor<%>
insert-box from editor<%>
insert-file from editor<%>
insert-image from editor<%>
insert-port from editor<%>
invalidate-bitmap-cache from editor<%>
is-locked? from editor<%>
is-modified? from editor<%>
kill from text%
overrides kill from editor<%>
last-line from text%
last-paragraph from text%
last-position from text%
line-end-position from text%
line-length from text%
line-location from text%
line-paragraph from text%
line-start-position from text%
load-file from editor<%>
local-to-global from editor<%>
locations-computed? from editor<%>
lock from editor<%>
locked-for-flow? from editor<%>
locked-for-read? from editor<%>
locked-for-write? from editor<%>
move-position from text%
needs-update from editor<%>
num-scroll-lines from editor<%>
on-change (augmentable only) from editor<%>
on-change-style (augmentable only) from text%
on-char from editor<%>
on-default-char from text%
overrides on-default-char from editor<%>
on-default-event from text%
overrides on-default-event from editor<%>
on-delete (augmentable only) from text%
on-display-size (augmentable only) from editor<%>
on-display-size-when-ready from editor<%>
on-edit-sequence (augmentable only) from editor<%>
on-event from editor<%>
on-focus from editor<%>
on-insert (augmentable only) from text%
on-load-file (augmentable only) from editor<%>
on-local-char from editor<%>
on-local-event from editor<%>
on-new-box from editor<%>
on-new-image-snip from editor<%>
on-new-string-snip from text%
on-new-tab-snip from text%
on-paint from editor<%>
on-save-file (augmentable only) from editor<%>
on-set-size-constraint (augmentable only) from text%
on-snip-modified (augmentable only) from editor<%>
own-caret from editor<%>
paragraph-end-line from text%
paragraph-end-position from text%
paragraph-start-line from text%
paragraph-start-position from text%
paste from text%
overrides paste from editor<%>
paste-next from text%
paste-x-selection from text%
overrides paste-x-selection from editor<%>
position-line from text%
position-location from text%
position-paragraph from text%
print from editor<%>
print-to-dc from editor<%>
put-file from editor<%>
read-footer-from-file from editor<%>
read-from-file from text%
overrides read-from-file from editor<%>
read-header-from-file from editor<%>
redo from editor<%>
refresh from editor<%>
refresh-delayed? from editor<%>
release-snip from editor<%>
remove-canvas from editor<%>
remove-clickback from text%
resized from editor<%>
save-file from editor<%>
save-port from editor<%>
scroll-line-location from editor<%>
scroll-to from editor<%>
scroll-to-position from text%
select-all from editor<%>
set-active-canvas from editor<%>
set-admin from editor<%>
set-anchor from text%
set-autowrap-bitmap from text%
set-between-threshold from text%
set-caret-owner from editor<%>
set-clickback from text%
set-cursor from editor<%>
set-file-format from text%
set-filename from editor<%>
set-inactive-caret-threshold from editor<%>
set-keymap from editor<%>
set-line-spacing from text%
set-load-overwrites-styles from editor<%>
set-max-height from editor<%>
set-max-undo-history from editor<%>
set-max-width from editor<%>
set-min-height from editor<%>
set-min-width from editor<%>
set-modified from editor<%>
set-overwrite-mode from text%
set-paragraph-alignment from text%
set-paragraph-margins from text%
set-paste-text-only from editor<%>
set-position from text%
set-position-bias-scroll from text%
set-region-data from text%
set-snip-data from editor<%>
set-style-list from editor<%>
set-styles-sticky from text%
set-tabs from text%
set-wordbreak-func from text%
set-wordbreak-map from text%
split-snip from text%
style-has-changed from editor<%>
undo from editor<%>
write-footers-to-file from editor<%>
write-headers-to-file from editor<%>
write-to-file from text%
overrides write-to-file from editor<%>