IonicWind Software

IWBasic => General Questions => Topic started by: Andy on March 02, 2012, 04:32:12 AM

Title: Listbox color
Post by: Andy on March 02, 2012, 04:32:12 AM
Hi,

Silly question time but:

using the @listbox command and populating the listbox using the ADDSTRING command, can I change the color of an individual string in that listbox so it stands out?

In other words, 5 entries in the listbox, can you change the color for say entry 3?

I'm guessing no, but then again i'm usually wrong!

Thanks,
Andy.
Title: Re: Listbox color
Post by: LarryMc on March 02, 2012, 08:50:51 AM
Found an example here on the forums by Sapero that showed how to add bitmaps to a listview.
I modified it a bit and came up with the attached example.

Hope it will let you do what you want.

LarryMc
Title: Re: Listbox color
Post by: Andy on March 02, 2012, 11:58:12 PM
Hi Larry,

Thanks, thats what I would like but i'm having difficulty incorporating it into the Browser_Test2Modified example. Just wanted to highlight an entry in the history list.

Will keep on trying!

Thanks,
Andy.
Title: Re: Listbox color
Post by: LarryMc on March 03, 2012, 08:29:27 AM
What is the criteria you use to select the line to change the color on?
When is the color of a line to be changed?

LarryMc
Title: Re: Listbox color
Post by: LarryMc on March 03, 2012, 08:59:28 AM
The attached causes item 2 (3rd entry in the 0 based list0 to be a different color.

LarryMc
Title: Re: Listbox color
Post by: Andy on March 04, 2012, 03:06:05 AM
Larry,

Thank you so much, thats great! I was highlighting a string that had a date in it.

Perfect!!!

Thanks,
Andy.