Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color coded list box?
Message
 
À
02/10/2001 11:13:54
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00563047
Message ID:
00563074
Vues:
39
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform