RichEdit Run-Time Formatting?
Posted on 2002-07-22
I have a RichEdit component, and would like to set the default Tab spacing to 4 spaces... how do I do that? And then, how would I instruct the program to insert a tab?
Then, I just need to know how to format data "on the fly".
Imagine the following "tagged" line :
... hopfully, you can understand what i'm trying to say here. ;-)
You see, the following :
With RickEdit1 do begin
Lines.Add('word01 word02 word03 etc. etc.');
.. is all well and good, but, I need to insert tabs, and set color and font weight properties on the fly, for certain words.
Whenever I try to do this, with the Font.Style := [fsBold] thing, it sets the global property of the RichEdit component.
Can anyone here advise me?