Text Box M Directive
Syntax
%M%
Description
The M directive creates a multi-line Text Box. You must add CR-LF codes to make the text appear on the second and subsequent lines.
Example
This script creates a multi-line text box.
dim help_text as C
help_text = "This is sample" + crlf()+ "help text to appear" + crlf()+ "in a read-only multi-line text box."
ui_modeless_dlg_box("Read-only Multi-line Text Box",<<%dlg%
{font=Verdana,10};
[%m%.50,5help_text];
;
;
%dlg%,<<%code%
if (a_dlg_button = "OK") then
ui_modeless_dlg_close("Read-only Multi-line Text Box")
end if
%code%)This script combines the M, W, and R directives to create a multi-line, word-wrapped, read-only text box.
dim help_text as C
help_text = "This is sample help text to appear in a read-only multi-line text box."
ui_modeless_dlg_box("Read-only Multi-line Text Box",<<%dlg%
{font=Verdana,10};
[%mwr%.50,5help_text];
;
;
%dlg%,<<%code%
if (a_dlg_button = "OK") then
ui_modeless_dlg_close("Read-only Multi-line Text Box")
end if
%code%)See Also