Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox color
Message
 
À
02/02/2004 13:33:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00873033
Message ID:
00873077
Vues:
19
well the listbox already exists as such:
WITH THISFORM.mylISTbox1
.ROWSOURCE = ''
.ROWSOURCETYPE = 0
.ROWSOURCETYPE = 3
.ROWSOURCE = "Select bar_code,report__,office,acct,cond,serial__,noun from d:\adpe INTO CURS PTEMP"

Would your idea still work?



>If data are static, and you want one column only, it is simple:
>
>DEFINE POPUP myListBoxItems
>DEFINE BAR 1 OF myListBoxItems PROMPT "Item1" COLOR RGB(100,100,100,20,20,20)
>DEFINE BAR 2 OF myListBoxItems PROMPT "Item2"
>DEFINE BAR 3 OF myListBoxItems PROMPT "Item3"
>* ....
>listboxObject.RowSourceType = 9
>listboxObject.RowSource = "myListBoxItems"
>
>
>otherwise you must write a loop code for build the popup.
>
>If you redefine a bar VFP refresh the listbox row,
>but the refresh is not done for all the attributes.
>
>Fabio
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform