TRichEdit is a multi-purpose control. For example, you can use it as a very sophisticated label control which can display multi color/font labels or even complex mathematical formulas.
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; |
- Go into any editor that supports RTF file format (Rich Text Format) such as Microsoft Word
- Type and format your text/pictures any way you like
- Save your work to a file using RTF file format (C:\TEST.RTF for example)
- Now, to display what you just edited using our "rich label control:"
RichEdit1.PlainText := False; |
Source : http://www.chami.com/tips/delphi/011397D.html
0 comments:
Post a Comment