MB_TEXT

 

Add a row of text to a new column

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
xcall MB_TEXT(control, text[, justification])

control

The menu control structure. (a)

text

The text to add to the column. (a)

justification

(optional) One of the following justification flags: (n)

0 = Left-justified beneath heading. (default)

1 = Right-justified beneath heading.

2 = Centered beneath heading.

MB_TEXT adds a row of text to a new column. This subroutine is used when building a new menu column at runtime.

The added text is not a menu entry; it’s just a comment displayed in the menu column. On Windows, text in a menu column can be highlighted, but the user will not be able to select it.

If justification is present and has a value of 1, text will be right-justified within the row. If justification has a value of 2, text will be centered in the row.

See the MB_BLANK Examples, which use all the “MB_xxx” subroutines.