Hi Tony,
You will find the RTF Control in the OLE list, when adding an OLE control. I am using VFP8, and here is what I do...
Drop an OLE control from the Control Panel to your form. At the time you place it on the form (at this stage it is a generic OLE control, without any name), The OLE Insert List appears with a list of the scads of ActiveX's available. You will find it under "Microsoft Rich Textbox Control, Ver 6.0. Select it and it's placed on the form.
But your work doesn't stop there, because in order to make the necessary manipulations to RTF text (e.g. bold, italic, indenting, centering, colored text, etc.), you will need controllers: buttons, options, font selector, etc.
There is good help for this in the VFP files. In mine I have two directories where they live:
C:\Program Files\Microsoft Visual Foxpro 8\Samples\Solution\OLE has a demo form (RTF.SCX) which has all the usual typographic controls and is enlightening to hack.
Also "C:\Program Files\Microsoft Visual Studio\Vfp98\RichText\RTFBOX98.CHM". This Help file has the most complete listing and documentation of RTF PEMs that I have seen anyplace.
So just getting the RTFBox onto the form is only half the job. But the good news is that once you have put together your controllers for it, they are available forever.
I like the RTF box control, and it does ALMOST everything I want. The only lack which is a nuisance in my usage, is the inability of RTF to produce a plain horizontal line in the text. HTML does this handily with its <hr> tag, but RTF is clueless about this.
I see I have a fellow-hair puller in the task of figuring out the RTF headers and tags and inserting them programmatically or manually. I went through the same thing, when I had to convert a WordPerfect file (heavily formatted) into RTF for importation into VFP. It took me days to get the RTF tags and headers straight and write the conversion code.
Best Regards,
Bill von Valtier
Rochester, Michigan