ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
String (Sdk)
String // Sdkstrike rapierFeb 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 hal9000Feb 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 mFeb 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 |