Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different colors in drop-down list?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01226129
Message ID:
01226138
Vues:
14
If you prefer array then you can add backslashes to array elements.

>I am using an array, which I created from a SQL statement from a table called MACHINES. If I am not using AddItem, then how do I accomplish this? Is it more difficult then the way in which I puit together my drop-down list from an array?
>
>I added a few more fields to the table to keep track of who is making the changes and whether or not the record is active, or that is if the WIRE DRAWING machine is still utilized:
>
>MACHINE
>LACTIVE
>LASTUPDATE
>USERNAME
>
>>>Is it possible to have different colors for items in a drop-down list?
>>>
>>>My idea is that for the items which are no longer available that I'd color them forecolor=RED and anythign else available as BLUE.
>
>>You can disable certain items by adding '\' (mild) or '\]' (hard). For example, Combobox.Additem('\]noavail') will show 'noavail' as disabled and user won't be able to access it.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform