Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color coded list box?
Message
From
03/10/2001 09:09:09
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563047
Message ID:
00563535
Views:
39
Hi Vlad

If there is no text, only spaces, its fine. But if you also have a text label then it goes wierd and you need to make the foreground slightly different from background. This can be the difference between 255 and 254. Maybe a bug?

I also changed the click event to display colour bar when user makes a selection. i.e.

*click event of combo box

with this

do case
case .ListIndex = 1 && Black for example
.BackColor = RGB( 0, 0, 0)
.ForeColor = RGB( 0, 0, 0)
case .ListIndex = 2 && Next Colour
..
..
..

endcase

endwith
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform