This structure provides all kind of text views and particular configuration options for them.
List of Import References :
See BOOL
See BTUnion
See Char
See Com
See DENOTATION
See Int
See Nat
See Option
See Real
See Seq
See Set
See String
See Void
See WinConfig
See WinInternal
See WinTclTk
SIGNATURE WinText
$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)
IMPORT Nat ONLY nat:SORT Real ONLY real:SORT IMPORT WinInternal ONLY view:SORT config:SORT WinConfig ONLY point:SORT
Text views are denoted by the following constants:
FUN text : view FUN entry : view
The constant text
represents a text-editor view for multi-line
editing. The constant entry
represents a text-editor view for
single-line editing. Both views are controlled by a text editor
gate (see WinTextEditor).
The following standard configurations are sensitive:
background borderWidth cursor exportSelection font foreground insertBorderWidth insertBackground insertWidth selectBackground selecteBorderWidth selectForeground setGrid takeFocus
bind enable regulate scroll sync
The following specific configurations are defined:
Long lines are wrapped according to the configuration
wrap
. The configuration wrap(Style, Above, Middle,
Below)
allows to control the additional space (in millimeters)
inserted above wrapped lines, between the different parts of a wrapped
line and below it.
TYPE wrapStyle == none char word FUN wrap : wrapStyle -> config FUN wrap : wrapStyle ** real ** real ** real -> config
next node: WinView,
prev node: WinScroller,
up to node: Subsystem Opal Windows