Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox with strings of a different color

Status
Not open for further replies.

BubbaDave

Programmer
Dec 30, 2000
23
US
Hi,

I need to insert strings into a TListBox with two characters that are a different color than the rest of the string.

For instance, if my string is "abcdefg", I want to add it to the ListBox with the 'abc' and 'fg' as black and the 'de' as red.

It doesn't necessarily have to be a TListBox. As a matter of fact, my experience with TListBox is that as the list grows longer, it slows down measurably. Maybe I should use something else that will be faster, because there could be possibly thousands of lines to insert.

I guess that's two questions...is there a component that will work faster than a TListBox and can I change the color of a portion of a string in the component?

Thanks for any help on this.
Dave



If it aint broke, fix it till it is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top