Typescript (leaf)

This is like a TextEdit component, but the underlying VBT class provides a reader and a writer for accessing the text. The lines of text that have been read become read-only as far as the editor is concerned. It is useful for ``transcripts.'' With a small amount of Modula-3 code, you can connect the reader and writer to pipes that run a command interpreter. Typescripts always have scrollbars.


ReadOnly
(Boolean, FALSE)
If true, the text-area will not be editable.
Clip
(Boolean, FALSE)
If true, the long lines will be clipped, not wrapped.
TurnMargin
(Real, 2.0)
If long lines are wrapped, then a small grey bar will appear at the end of the first line and the beginning of the next to indicate that the line was wrapped. TurnMargin specifies the width of the grey bar.
FirstFocus
(Boolean, FALSE)
If true, and if this component is in a subwindow or TSplit-child, then when that component appears, this component will acquire the keyboard focus, and its text will be selected in replace-mode.

Notes
For details on the editing commands, see the description of TextPort in the VBTkit Reference Manual [VBTkitRefman] . The following code shows the Modula-3 code for accesses the underlying reader and writer:

WITH v = FormsVBT.GetVBT(fv, "typescript") DO
  rd := TypescriptVBT.GetRd(v);
  wr := TypescriptVBT.GetWr(v);
END;

See Also
TextEdit and TypeIn