Re: Painting mixed attribute text into a control?



"Richard A. DeVenezia" <rdevenezia@xxxxxxxxxxxx> wrote in message
news:43qe1iF1ohcn5U1@xxxxxxxxxxxxxxxxx

> What is an effective way for painting text having a variety of styles?
>
> For example, in painting a ListView item, I would want the string XYZ
> to appear differently.
>
> In html it's easy as text := '123 abc <span
> style='background:green'>XYZ</span> for sooth';
>
> How might I render an html'ish string into an offscreen buffer and blit
> it into the control context ?

Type "OwnerDraw", press F1, read help. Prepare to read lots of help, and
try to write as little code as possible.

Groetjes,
Maarten Wiltink


.