LTEXT Control

This resource-definition statement creates a simple rectangle displaying left-aligned text. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next line. The LTEXT statement, which can be used only in a DIALOG statement, defines the text, identifier, dimensions, and attributes of the control.

Syntax

LTEXT text, id, x, y, width, height [[, style [[, extended-style]]]]

Parameters

style

Specifies the control styles. This value can be any combination of the BS_RADIOBUTTON style and the following styles: SS_LEFT, WS_TABSTOP, and WS_GROUP.

If you do not specify a style, the default style is SS_LEFT | WS_GROUP.

Remarks

For more information about the text, id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.

Example

The following code example shows how to create a left-aligned text control that is labeled Filename.

LTEXT "Filename", 101, 10, 10, 100, 100 
 

See Also

CONTROL, CTEXT, DIALOG, RTEXT