Navigation:  thinBasic Modules > UI (User Interface) > CONTROLs > Dedicated Control Functions > RTF Control >

RTF_AppendText

Previous pageReturn to chapter overviewNext page

 

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]

for foreground color

n is the color number

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

[COLOR=125,56,32]

[BCOLOR=n]

for background color

n is the color number

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

[BCOLOR=125,56,32]

[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]

 





 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com