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.
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.