RTF_AppendText

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Richedit Control > Richedit Control Commands >

RTF_AppendText

 

Description

 

Append a text buffer at the end of the rich edit control.

 

Syntax

 

RTF_AppendText(hWnd, ctrlID, sBuffer [, lOption])

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the Rich Edit control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

sBuffer

String

No

String expression containing the text to append

lOption

Number

Yes

One of the following possible values:

%RTF_UBBssBuffer will be analyzed in order to interpret possible presence of simple UBB like formatting codes like:
 

[B][/B]

for start/end bold

[I][/I]

for start/end italic

[U][/U]

for start/end underline

[S][/S]

for start/end strikeout

[LEFT]

for left align

[CENTER]

for center align

[RIGHT]

for right align

[SIZE=xx]

set font size

[FONT=FontName]

set font

[COLOR=n][/COLOR]

for foreground color blocks

n is the color number

 

n can be specified in r,g,b format like:

[COLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

[BCOLOR=n][/BCOLOR]

for background color blocks

n is the color number

 

n can be specified also in r,g,b format like:

[BCOLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

[CCOLOR=n]

for control background color

n is the color number

 

n can be specified also in r,g,b format like:

[CCOLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

 





 

Remarks

 

Restrictions

 

See also

 

Examples