Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rich Text Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00242628
Message ID:
00245093
Vues:
32
There's certain header information in the RTF file that established what fonts and colors that you are using in your file. That said, what I did was to place the contents of the file into a character variable and assigned that to the RTF control's TextRtf property. Ie. ThisForm.oleRtfControl.Object.TextRtf = lcRtfStr.

For Font control Bold, Underline, Italics, you use the \b \u \i identifiers before the word/words that you want to change the attributs of. Then when you want that attribute turned off, you use \b0 \i0

Here's some sample code from my app that might help.

lcRtfStr = lcRtfStr + "\b\ul\i " + ALLTRIM(STR(c_results.counter)) + ". " + lcTitle + " " + lcDate + " " + lcRecType + "\b0\i0\par"

HTH

-Matt
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform