Hey all,
I want to change the text color in the middle of a label to Red (for example) to signify a “reduction” in something.
For example:
Label1.Text = "This stat went down "+ (change color to Red) - variablename (change back to white) + " rest of text"
Is there a way to do this in Xojo natively?
Multiple labels might be a good workaround. AFAIK a label can only have one color.
(set by Label.TextColor)
Jeremy has a plugin for that
http://www.jeremieleroy.com/products/bbcodelabel.php?PHPSESSID=7481bf068bdb7b8356eef6e22400ac62
No idea how he does it though.
Alternatively use a canvas and draw the text yourself.
[quote=164674:@Derek DiBenedetto]Hey all,
I want to change the text color in the middle of a label to Red (for example) to signify a “reduction” in something.
For example:
Label1.Text = "This stat went down "+ (change color to Red) - variablename (change back to white) + " rest of text"
Is there a way to do this in Xojo natively?[/quote]
Best way is to use a canvas.