benni
asked on
RTF - change background color
how do i change the background color of a single line
in RichEdit field ?
if it's not possible - is there any other component which
provides colored text, different background colors
on a single line and the TMemo functions ?
thx
benni
in RichEdit field ?
if it's not possible - is there any other component which
provides colored text, different background colors
on a single line and the TMemo functions ?
thx
benni
This is an extract from the win32.hlp file:
"Foreground color is a character attribute, but background color is a property of the rich edit control."
So as you can read there, a richEdit component can't do it... :-(
Regards, Madshi.
"Foreground color is a character attribute, but background color is a property of the rich edit control."
So as you can read there, a richEdit component can't do it... :-(
Regards, Madshi.
ASKER
hmm I know this component, but it works only good for keywords
I need a (simple) way to set the bgcolor on a specific position
and all the following typed text should have this bgcolor until
a other bgcolor is set ...
It might be possible to do this with the ColorMemo, but it
seems too much work for me ...
RichEdit1.SelAttributes.Co lor is realy fine for the textcolor !
is there no such thing like RichEdit1.SelAttributes.Bg Color ???
I need a (simple) way to set the bgcolor on a specific position
and all the following typed text should have this bgcolor until
a other bgcolor is set ...
It might be possible to do this with the ColorMemo, but it
seems too much work for me ...
RichEdit1.SelAttributes.Co
is there no such thing like RichEdit1.SelAttributes.Bg
TRichEdit cannot do it (setting the background color), although RTF does have the \bg command.
Now there is a new RichEdit control, RichEdit2. It can do things that the old one could not do although RTF could do it.. most famous example: display embedded images.
Maybe this new control - you might get it from MS through a DLL update - also handles your background color .. with a SendMessage() ?
Now there is a new RichEdit control, RichEdit2. It can do things that the old one could not do although RTF could do it.. most famous example: display embedded images.
Maybe this new control - you might get it from MS through a DLL update - also handles your background color .. with a SendMessage() ?
There are some components for the RichEdit2 here:
http://nswt.tuwien.ac.at/delphi/index.htm
Look for RichEdit98...
But I don't know, if that would solve your problem...
Regards, Madshi.
http://nswt.tuwien.ac.at/delphi/index.htm
Look for RichEdit98...
But I don't know, if that would solve your problem...
Regards, Madshi.
ASKER
thanks madhsi - RichEdit98 can do what I want
you might send your comment as an answer, so I can give you
your points ...
you might send your comment as an answer, so I can give you
your points ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hmmm. But you'll have to ship the RichEd20.dll with your product, since it's not included in the standard dll set of win95...
ASKER
that dosnt matter :-) ...
http://www.balticsolutions.com/products/cmemo/index.html
Regards, Zif.