Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color coded list box?
Message
 
To
02/10/2001 11:13:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563047
Message ID:
00563074
Views:
37
>Does anyone have some ideas about how to color code items in a list box? I've done it with grids.
>
>Thanks,
>Allen

You can do it wit the popup as a rowsource:

Example:
*listbox.init()
DEFINE POPUP colorlist
DEFINE BAR 1 OF colorlist PROMPT "Red" COLOR ,RGB(255,0,0)
DEFINE BAR 2 OF colorlist PROMPT "Green" COLOR ,RGB(0,255,0)
DEFINE BAR 3 OF colorlist PROMPT "Blue" COLOR ,RGB(0,0,255)

this.rowsourcetype = 9 && popup
this.rowsource = "colorlist"
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform