Xbasic
{RTF}
Syntax
{RTF= [ %Directives% ] Width [, Columns ] Label }
Arguments
- %Directives%
Character. Refer to Xdialog Language Directives and Operators.
- Width
Numeric. An integer value for the maximum number of characters to display on one line. The actual number displayed may be less because of word wrap.
- Columns
Numeric. Optional. Default = 1. An integer value for the number of rows to display.
- Label
Character. The label of the RTF control.
Description
The {RTF} command places an RTF text box on the Xdialog.
Example
dim r as P
dim a as C
r = rtf.create(" ")
r.insert("Initial text to appear in RTF field. Right click and select Properties or display RTF Editor to change font attributes.", 1)
a = r.rtf_text
ui_dlg_box("Xdialog Sample", <<%dlg%
{rtf=a}<15,2Display Editor>;
%dlg%)
r.rtf_text = a
a5_rtf_editor2(r)Limitations
Desktop applications only
See Also