Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable some combo list items?
Message
From
01/06/1998 11:47:04
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00103598
Message ID:
00103643
Views:
23
>>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform