brush.color for SelAttributes of a TRichEdit

brush.color for SelAttributes of a TRichEdit

Post by Dietmar Br » Thu, 27 Nov 2003 17:47:42


Hi,

I'm inserting text-pieces into a TRichEdit. To show the user what's inserted
I do this

re.SelStart := OldSelStart;
re.SelLength := Length(sText);
re.SelAttributes.Color := clGreen;

So the characters of inserted text are green.

Now it would be nice to have green background. In TCanvas I'd set
Brush.color := clGreen.
But SelAttributes didn't have a Brush-property nor a property that seems me
to be able to do that.

Best regards
Dietmar
 
 
 

brush.color for SelAttributes of a TRichEdit

Post by -- » Fri, 28 Nov 2003 03:04:53

Hi,

Look at:

SetBkColor
SetBkMode

Cheers,

Zayin