FutureBasic Logo

<<    Index    >> FutureBasic 5

edit text   statement



Syntax:
edit text [#optionalFieldNum%,][font]¬ [,[size][,[style][,[mode][,foreRGB][,backRGB]]]]

Description:
If the active edit field or the field specified by #optionalFieldNum% in the current output window is a multistyled edit field, then edit text applies the specified text characteristics to any text which is currently selected. Also, any new text which is subsequently inserted at the current insertion point or within the current selection range will be displayed using the specified text characteristics.
If the active field (or the field specified by #optionalFieldNum%) is not a multistyled field, then edit text causes the specified text characteristics (except color) to be applied to all the text in the field.
The parameters have the following meanings. If you omit any parameters, the corresponding text characteristics won't be altered.
Multistyled fields not supported.

#optionalFieldNum
field number that should accept the font changes. When omitted, the active edit field is used.
font
font family ID
size
font size, in points
style
bold, italic, underline, etc. See the text statement for more information.
mode
This parameter is currently ignored.
foreRGB

An RGB color record for the text color which could be dimensioned as: dim foreRGB as RGBColor
backRGB

An RGB color record for the background color which could be dimensioned as: dim backRGB as RGBColor
See Also:
text; SetSelect; edit field