Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RichText box - adding RTF codes directly
Message
De
12/08/1997 01:24:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
RichText box - adding RTF codes directly
Divers
Thread ID:
00044147
Message ID:
00044147
Vues:
74
I'm trying to add a line to a RichText box using the .SelRTF property. I've gotton foreground color (\cf#) to work, but I can't seem to make background color (\cb#) to work at all. No matter what I try, the backgroud color of the text added just stays white. Here's the RTF string I'm adding:

rtbDisplay.SelRTF = "{\rtf1\ansi" + ;
"\deff0\deftab720" + ;
"{\fonttbl{\f0\fmodern Fixedsys;}}" + ;
"{\colortbl\red0\green0\blue255;\red0\green127\blue0;}" + ;
"\cf0\cb1 This is a test\'0D\'0A" + ;
"}"

It seems to completely ignore the \cb1. And if I use rtbDisplay.SaveFile "c:\temp\temp.rtf", the \cb gets striped out completely. HELP!!! :)
-----
Lee Perkins
TigerBase Technologies

"Lee is one that would plug his brain into the internet, if he could, and STILL scream for more" - Very good friend of Lee's
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform