[Lazarus] html control from turbopower_ipro that comes with lazarus
Howard Page-Clark
hdpc at talktalk.net
Thu Aug 23 21:46:21 CEST 2012
On 23/8/12 8:17, Ajeandro Gonzalo wrote:
> But how can this control be used like Delphi's RichEdit control to just
> add color and bold (for example) to simple text?
AFAIK the control itself has no colouring or emboldening capabilities
beyond its ability to render valid html text correctly.
You have to adapt your text data, i. e. save it as an .html file and
insert the HTML tags yourself.
So the text 'This has a single *bold* word' would need to be saved as
(say) test.html containing the data:
<html>
<body>
This has a single <b>bold</b> word
</body>
</html>
Howard
More information about the Lazarus
mailing list