|
||||||||||||
The RichEdit is a text component used for
input as well as output. The RichEdit can be found under Win32 on the
component palette.
To add a line to a RichEdit the following line of coding can be used:
Take note of the #9 that refers to a tab. Other properties can be set as follows:
A RichEdit can be cleared by using RichEdit1.Clear; for example. Tabs can also be used to list items exactly underneath each other. For this purpose the amount of tabs must be set and then the width be specified. For example:
Text written in a RichEdit can also be save directly into an RTF (Rich Text Format) file using the SaveToFile procedure. Files can also be opened using the LoadFromFile procedure. For example:
|
Return to
Delphi resources index
Return to Home Page
2024 J Olivier. Except where otherwise noted, the content on this website is licensed under the terms of the Creative Commons BY SA 4.0 license. https://creativecommons.org/about/cclicenses/