Highlighting calls from a same region
I have an application that reads live from a phone log. The calls that come in appear on screen. I would like to change the background of calls from the same region, if more than one. Meaning if there are duplicate calls from one region I would like to change the background to a common color for that region. I would like to be able to identify up to 5 groups of duplicates (5 different colors).
Ooopsss.... Forgot to mention, the colors can't be associated to a specific region, since at any point I may or may not have calls from that specific region. It should be more like a first come first served kind of scenario. If I have more than five groups of duplicates the following ones might get a distinguishable common background color.