Upravit

Sdílet prostřednictvím


RTEXT control

Defines a right-aligned text control. The control is a simple rectangle displaying the given text right-aligned in the rectangle. 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. Words that are longer than the width of the control are truncated.

The RTEXT statement, which can be used only in a DIALOGEX statement, defines the text, identifier, dimensions, and attributes of the control.

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

style

Styles for the text control, which can be any combination of the following: WS_TABSTOP and WS_GROUP.

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

For more information about the general syntax of a control statement, see Common Control Parameters.

Examples

The following example demonstrates the use of the RTEXT statement:

RTEXT "Number of Messages", 4, 30, 50, 100, 10

See also

CONTROL

CTEXT

Edit Controls

LTEXT