Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multicolored label
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00700941
Message ID:
00701227
Views:
18
Thanks for all the idea's and Nick's fine example.



>Hi!
>
>You can organize it in 2 ways:
>
>1. For a single label - it is not possible. You will have to create as many labels as you have different characters with different colors. Then combine them into a single line of text by using TXTWidth()/FontMetrics() function to determine letter width.
>
>2. Do not bother with VFP labels at all - create RTF control, format it properly, so it looks like a label (you will never get a transparency though). Then you can colour each character insite of RTF control text. Make it read-only and not enabled, so users will see it just as a label.
>
>You can probably use a few other ActiveX for this purpose, for example, WEB Browser (in HTML format).
>
>>I was looking for an idea how to create a class or method to parse a label's chars and have each one a different color, if at all possible.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform