Thread

String (Sdk)

String // Sdk

1  |  

strike rapier

Feb 15, 2002, 6:29pm
Hey folks, im just wondering if anyone knows how to change the color of a
line of text in a RTB, ive tried various methods, none of which have worked,
tx.

- sr

hal9000

Feb 16, 2002, 12:14am
RichText1.SelStart 20


[View Quote]

hal9000

Feb 16, 2002, 12:23am
lets try that again...

--== in VB ==--
RichText1.SelStart 20
RichText1.SelLength 10
RichText1.SelColor RGB(255,0,0)

in C++ its a bit harder...
i will assume your using VB since more people use that in here than C++, but
if you are using C++ let me know and I can send you an example App...

tony m

Feb 16, 2002, 12:44am
simply a theory... don't know a drop of VB [anymore] but maybe you could find some equivalent..

in Delphi, you modify the SelAttributes property of a TRichEdit (VB equiv: RichText[Box]) like this:

RichEdit1.SelAttributes.Font.Color := clRed;

i know VB has to have some kind of equivalent.. i think i saw it on planetsourcecode.com too.

[View Quote] >Hey folks, im just wondering if anyone knows how to change the color of a
>line of text in a RTB, ive tried various methods, none of which have worked,
>tx.
>
>- sr
>
>

--
Tony M (fldmshl2013 at hotmail.com)
http://tonyhttp.s5.com

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn