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

OK, figured out that if you change the RGB() color setting in Nick's sample to an RGB color-pair then you achieve the desired result. i.e.

DEFINE BAR 1 OF colorlist PROMPT "Red" COLOR ,RGB(254,0,0,255,0,0)

This will create a Red bar as the 1st element. The name "Red" will only appear when you highlight that row because of the highlight color settings of the combo box. I am sure one can set the highlight colours to a dynamic setting to reflect the current highlighted element? I'll try it.

Note that you have to make the first (foreground) RGB color slightly different from the second (background) RGB setting otherwise it does some type of XOR (or something) which cancels the foreground and background settings out leaving just a white bar with faded text?
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