Listbox colour

BlitzPlus Forums/BlitzPlus Programming/Listbox colour

Cold Harbour(Posted 2004) [#1]
Anyone know if it's possible to have different items in a list box be different colours?

So if I had a list box with "Donkeys, Hens, Cows, Pigs, Monkeys", the Donkeys would be blue text, hens yellow text, pigs red text, etc.

Thanks!


skn3(Posted 2004) [#2]
Nope.
Not unless you make your own listbox.
You can of course change the color of text in a textarea.


Cold Harbour(Posted 2004) [#3]
Thanks for the reply.

I've started making my own using a canvas. Or maybe a whole load of canvases, not sure yet.


skn3(Posted 2004) [#4]
1 canvas is the way to go :)

I considered usin multiple canvis/gadget/panel/etc to makeup a listbox. For reasons envolving blitz+ events I decided not too, and just made the gadgets myself.



:) this is one canvas btw
<end pimp>


Cold Harbour(Posted 2004) [#5]
I think you’re right; one canvas would certainly be easier.

Your listbox looks great btw.