Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multicolored label
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00700941
Message ID:
00701227
Vues:
19
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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform