Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rich Text Active X Control
Message
From
06/12/2007 14:42:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01272587
Message ID:
01273701
Views:
28
>I'm still lost as to how to set the font color for the rich text box. I am displaying raw text from a simple text file and I want to set the font color for the entire rich text box. Any help is very appreciated.

Then select everything: .selstart=0, .selLength=len(.text) or len(.textRTF) (you'll have to try) and then set .selColor to any RGB() value you want.

If you want to set the colors for the text that'll be input by the user, then set the .Font.color property; same goes for .bold etc - you can actually have a toolbar with buttons which will do that. There should be an example of such a toolbar in the Solutions folder (home(2) then below that).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform