Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ForeColor for some, but not all, listbox items?
Message
De
20/02/1999 10:15:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/02/1999 16:10:36
John Streeter
Wanger Asset Management, L.P.
Chicago, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00189495
Message ID:
00189653
Vues:
8
>Is there a simple way to change the color property of selected items in a listbox? In other words, all items are blue and I want to turn items #3, 4 and 7 to red. Can this be done?
>
>I have noticed that the ItemForeColor propery appears to take a subscript / index, but seems to have no effect. That is, .ItemForeColor(3) = RGB() works in the sense that it does not raise an error. But, it doesn't work in the sense that the subscript is ignored and the color is applied to all list members.

I think it was Christof Lange who showed this neat trick with a listbox wiith a popup as a rowsource, and in a popup you can define your fonts and colors as you like. Of course, you have to define the popup first, maybe from the listbox's init, or form's load.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform