Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Foxpro - List box /Grid Item Disabling
Message
De
12/11/1997 09:29:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00059645
Message ID:
00059683
Vues:
37
>I would like to know how I can disable an item in a list box or a row in a grid and manipulate the same during run time. I have an appliation where I have to disable the list box item, if selected. could somebody help me by mailing a solution to shanky@md2.vsnl.net.in

For listbox you can disable a item only if you used Listbox.Rowsourcetype=0, i.e. list filled using:
Thisform.List1.Additem("item1")
To make the item disabled you add slash:
Thisform.List1.Additem("\item1")
For grid, you can use either Column.Control.When event returning .f. in a case you want the control to be 'disabled', or (I think it's better), you use Column.DynamicCurrentControl property toggling two available controls (enabled/disabled), depending on some value.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform