It is possible to display multiple colours in string?
I need this!!!
Printable View
It is possible to display multiple colours in string?
I need this!!!
bump bump, the mister bump
It is possible to display multiple colours in string?
I need this!!!
you'd probably need a second delimiter to mark the string end
or indicate the string length that you would like to "color"
i.e. "today I ate an ^3apple^"
is the number "3" a fixed length number?
could it be more digits than just one?
you could simply use the parser (or tokenizer)
to split the string at ^
start a loop elementcount times
on this loop:
if element is even
>> set font color to 0
>> add elementstring to the rich text editor
if element is odd
>> set font color to >>> color code relative to val(left$(element,1))
>> add right$(elementstring,len(elementstring)-1) to the rich text editor
I can make an example maybe tomorrow if you need, got to go soon :(
Hot damn schrodinger if that works you're genius!
Oh, I forgot you already are! :D
But seriously, you're such an asset for CT and the community. Thanks for being around helping the fellow Clickers. :)
Jesse XDXD you're too kind man,
I confess I have fun doing examples and trying to solve problems I never encountered before
this really helps improving one's skills and also "logical-thinking", "problem-solving", this kind of stuff XD
(but sometimes this doesn't fit well with lack of time...!)
That *should* work (and be probably improved!),
if GamerH2 needs an example I could probably provide one later :)
Needs an example. What you have say are so confusing :pacdot:
Here you go:
Attachment 20331
setup your color list doubleclicking the hidden list on top of frame (first entry will be default color)
each entry can be referenced as a progressive number and contains RGB values of the color
^2= second line
^3= third
etc.
this will work for a single-digit list of colors (up to 9)
if you need more you can slightly modify the example to fit two digits or more
No. I need to do this in string object.
The string object only has support for one color unfortunately.