Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MLE (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
The Resource Compiler MLE Statement
MLE text, id, x, y, width, height[, style]
The MLE statement creates a multiple-line entry-field control. The control
is a rectangle in which the user can type and edit multiple lines of text.
The control displays a pointer when the user selects it. The user can then
use the keyboard to enter text or edit the existing text. Editing keys
include the BACKSPACE and DELETE keys. By using the mouse or the ARROW keys,
the user can select the character or characters to delete or select the
place to insert new characters. The MLE statement, which you can use only in
a DIALOG or WINDOW statement, defines the text, identifier, dimensions, and
attributes of a control window. The predefined class for this control is
WC_MLE. If you do not specify a style, the default style is MLS_BORDER,
WS_GROUP, and WS_TABSTOP.
Field Description
────────────────────────────────────────────────────────────────────────────
text Specifies text that is displayed in the rectangular area of the
control. If the MLS_READONLY style is not specified, the user can
edit the text. This field must contain zero or more characters
enclosed in double quotation marks. Character values must be in the
range 1 through 255. If a double quotation mark is required in the
text, you must include the double quotation mark twice.
id Specifies the control identifier. This value must be an integer in
the range 0 through 65,535, or a simple expression that evaluates to
a value in that range.
x Specifies the x-coordinate of the lower-left corner of the control.
This value must be an integer in the range 0 through 65,535 or an
expression consisting of integers and the addition (+) or
subtraction (-) operator. The coordinate is assumed to be in dialog
units and is relative to the origin of the dialog box, window, or
control containing the specified control.
y Specifies the y-coordinate of the lower-left corner of the control.
This value must be an integer in the range 0 through 65,535 or an
expression consisting of integers and the addition (+) or
subtraction (-) operator. The coordinate is assumed to be in dialog
units and is relative to the origin of the dialog box, window, or
control containing the specified control.
width Specifies the width of the control. This value must be an integer in
the range 1 through 65,535 or an expression consisting of integers
and the addition (+) or subtraction (-) operator. The width is in
¼-character units.
height Specifies the height of the control. This value must be an integer
in the range 1 through 65,535 or an expression consisting of
integers and the addition (+) or subtraction (-) operator. The
height is in 1/8-character units.
style Specifies the control styles. For a list of possible styles, see the
topic ◄Multiple-line entry-field styles►. You can use the bitwise OR
(|) operator to combine styles.
Example
This example creates a multiple-line entry-field control that is not
labeled.
MLE "", 101, 10, 10, 50, 100
See Also
CONTROL, ENTRYFIELD, DIALOG, WINDOW
♦