Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF S.O.S.
Message
From
23/12/1998 02:53:32
 
 
To
22/12/1998 21:50:52
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00169892
Message ID:
00169910
Views:
19
>Q1: How can I change the background color of a selected piece of text in the Rich Text control. The online documentation says that the "\cb" RTF code should do the trick but I had no luck (although its partner "\cf" DOES work for changing the forecolor) I looked at the RTF codes generate by Word when saving a document as RTF. It used the "\highlight" code but the RTF control seems to ignore this RTF code.

Alan,
I'm a newbie here, but I have been implementing the RTF OCX in an app for the past few weeks...
My understanding is that Richtext is something of a moving target. Microsoft (or someone) seems to be adding new abilities as time goes by, but the RTF OCX that ships with VS6 is not completely up-to-date, feature-wise. Short answer, I don't think colored background is an option. Word will generate a lot of RTF codes that the VS6 RTF OCX seems to ignore. After reading a lot of the VB documentation, it seems that is the nature of the design.

>Q2: Where can I get a list of RTF codes and examples of how to use them? (The list given with the Rich Text Control, version 6 isn't very helpful.

The most complete view I've seen is the 'All' tab on the VFP properties sheet. I've seen more methods, events, and properties exposed there than in the RichtextCtrl Properties sheet that you get from the right-mouse click.

Good luck.

Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform