![]() |
|
#1
|
|||
|
|||
|
hi all
i have some problem Quote:
but using RxRichedit Problem i want this log show addlog('TEST',Clblack,true,true); addlog('Test',Clred,false,false); and show in richedit TEST test = using richedit standart TEST test => using RxRichedit help me thanks br |
|
#2
|
|||
|
|||
|
I am not sure how you got this code you posted to work with the Standard TRichEdit as just by looking at it I know it would not compile...
Change the code in your procedure, to this: Code:
rxrichedit.SelAttributes.Color := Color;
if bold then
rxrichedit.SelAttributes.Style := [fsbold]
else
rxrichedit.SelAttributes.Style := [];
rxrichedit.seltext := msg;
if ReadLen then
rxrichedit.seltext := #13#10;
rxrichedit.perform(EM_SCROLLCARET, 0, 0);
__________________
"Where there's a will, there's always a way." -- The Hon Robert Nester Marley O.M. - aka Bob Marley! |
|
#3
|
|||
|
|||
|
Quote:
if rxrichedit.seltext := #13#10; problem is text no show in rxrichedit if Rxrichedit.lines.add(#13#10); all text lenght potition like this Quote:
Quote:
br |
|
#4
|
|||
|
|||
|
Just set your ReadLen variable to True!
Like this: Code:
Addlog('TEST: TRUE',clRed,True,True);
__________________
"Where there's a will, there's always a way." -- The Hon Robert Nester Marley O.M. - aka Bob Marley! |
|
#5
|
|||
|
|||
|
Quote:
i have done if RXrichedit1.seltext:='TEST'; not show in rxrichedit i think problem is seltext maybe i will upload my source in original richedit its fine addlog('TEST :',clblack,false,false); addlog('TRUE,clred,true,true); show in rich edit TEST: TRUE thanks and best regard |
![]() |
| Thread Tools | |
| Display Modes | |
|
|