Posted by webmaster Guido on June 07, 2005
In Reply to: Re: set TRichEdit text in bold posted by joe90 on June 05, 2005 In this case, we can't use RichEdit.Lines.Add twice, because that would add an end-of-line code each time. RE.SelStart := Length(RE.Text); // put cursor at end RE.SelAttributes.Style := [fsUnderline]; RE.SelText := 'This is underlined'; RE.SelStart := Length(RE.Text); // put cursor at end RE.SelAttributes.Style := []; RE.SelText := ', but this is normal'; RE.Lines.Add(''); // add end-of-line
|
|