Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out if item is disabled in a listbox?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00741505
Message ID:
00741874
Views:
24
>Hi!
>
>It is not possible by direct way, and solution with MouseDown is not a good one.
>
>We used anotehr solution - create an array that is parallel to List array. In this array we store status of each list item. Then synchronize list items accordingly. This is specially useful for case when list box is disabled/enabled. When list box is disabled/enabled, disable status of particular list item got lost, so we required to restore it. For this purpose, item status array is also very useful.
>
>It is good to make a list box class that have such functionality and maintains item status array automatically.
>
>You can also search UT messages - there was a thread about this some time ago, with exactly the same solution.
>
>HTH.

Are you sure, it was here in UT? I found similar discussion on the Russian Forum as well and I agree, that your solution sounds reasonable. It would be much easier, of course, if listbox (and combobox for that matter) have ItemEnabled property (similar to selected).

Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform