Re: question about List text colors
- Posted by Brian Jackson <bjackson at 2FARGON.HYPERMART.NET> Jan 24, 2000
- 370 views
On Sun, 23 Jan 2000 18:01:58 EST, Derek Brown <Cyrusbrown at AOL.COM> wrote: > First of all, it's good to be back on the mailing list. I've been without >a computer since September and now I'm back. > How do I change the colors of List items? I can change the font, but not >colors. I want to display a roster of players, where healthy ones are black >and injured are red. > > >Thanks, >Derek Derek, I'm afraid I've got bad news all the way around for you. First of all, the List control can display text in only one color. Furthermore, you can't change the foreground or background colors of objects in win32lib (except the window object) I did some research on it yesterday, and it wouldn't be too hard to implement, it just hasn't been done yet... There is some good news though. There IS a control that will let you set different colors on each line, use icons for them, etc. It is the treeview control. *BUT* is isn't implemented in win32lib yet. I have managed to create my own WITHOUT using win32lib (YUK!), but treeview objects are class structures that use dot notation. I haven't got a clue how you would tell a treeview to TreeView.InsertItem in Euphoria, so my treeview just sits there uselessly. Well, I'm going to go jump off the roof now... Sorry I wan't any help at all, Brian