Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Foxpro - List box /Grid Item Disabling
Message
From
12/11/1997 09:29:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059645
Message ID:
00059683
Views:
32
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform