Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

<text-editor>

Open abstract instantiable class

Summary

The class of multiple line text editors.

Superclasses

<text-field>

Init-keywords

columns:
An instance of type false-or(<integer>). Default value: #f.

lines:
An instance of type false-or(<integer>). Default value: #f.

scroll-bars:
An instance of type one-of(#f, #"none", #"horizontal", #"vertical", #"both", #"dynamic"). Default value: #"both".

Library

duim-gadgets

Module

duim-gadgets

Description

The class of multiple line text editors.

Figure 8.41 A text editor

The columns: and lines: init-keywords specify the number of columns and lines of characters visible in the text editor, respectively.

The scroll-bars: init-keyword specifies whether the text editor has scroll bars or not.

Internally, this class maps into the multi-line edit control Windows control.

Operations

None.

Examples

To constrain the number of lines and columns when an editor is first displayed:

*editor* := contain(make(<text-editor>, 
                         lines: 20, columns: 80));

To make a text editor that is fixed at 10 lines high:

make(<text-editor>, lines: 10, fixed-height?: #t);

See also

<text-field>, page 674


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index