by Roger Seiler » Mon Nov 10, 2008 7:56 pm
Though I haven't used TRichedit yet, by looking at \fwh\source\classes\TRichedi.prg it seems that the following info appears to be relevant...
The class has seven methods dealing with loading and saving data, GetSel(), LoadRTF(), LoadAs RTF(), LoadFromRTFFile(), SetText(), and SaveAsRTF(), SaveToFile() that should be looked at closely. They seem to offer a variety of ways to get and save the RTF data.
Some of these seem to work similarly to MEMOREAD() and MEMOWRIT() used with memo text. It looks as though LoadFromRTFFile() enables loading from a database with RTF data in a memofield.
Insofar as TRichedit inherits from TControl which in turn inherits from TWindow, the provisions for handling foreground and background colors in those parent classes are inherited here.
- Roger