First of all, we'll remove the border around the TRichEdit control (assuming it's named RichEdit1) and make it read only:
RichEdit1.BorderStyle := bsNone; RichEdit1.ReadOnly := True; |
You can achieve basic formatting (such as bold, italic, etc.) of the text you want to display using TRichEdit's built in properties and methods, but if you want to display more complex text:
RichEdit1.PlainText := False; RichEdit1.Lines.LoadFromFile( 'c:\test.rtf' ); |
NOTE: Since TRichEdit controls consume more memory than basic TLabel controls, you should replace TLabel controls with TRichEdit controls only when it's absolutely necessary.