Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to disable some combo list items?
Message
De
01/06/1998 11:47:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00103598
Message ID:
00103643
Vues:
24
>>>>>I am using the rowsourcetype "6-Fields" instead the "5-Array". Does anybody know how can I disable the combo list item?
>>>>>
>>>>>
>>>>>Thanks, Tai Fei Pao
>>>>
>>>>You can disable items for rowsourcetype=0 (None) adding them with '\' as first character:
>>>>This.Additem("\disabled")
>>>
>>>
>>>Thanks, but I still have problem. I want to load the ComboBox from the table but I would like disable some of the list items (show the value with disbale color). Is it anyay to do it?
>>>
>>>
>>>Thanks, Tai Fei Pao
>>
>>As I told you, the way is to fill the combo programmatically, or you have to invent something complicated (e.g. textbox+button opening grid).
>
>
>Thanks again, I have another problem. I want to display this combo with two columns. Do I support use ADDLISTITEM or ADDITEM. Can you show me the code to load two columns.
>
>Thanks, Tai Fei Pao

Use ADDLISTITEM():
***combo.init event
this.columncount=2
this.addlistitem("item11",1,1)
this.addlistitem("item12",1,2)
this.addlistitem("\item21",2,1)
this.addlistitem("\item22",2,2)
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform