Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Colored disabled items in Listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00761279
Message ID:
00761559
Views:
29
George, here's a kludge - put a transparent shape on your form eg at the top left of the list box, but not covering the listbox. When you want to "disable" the listbox extend the transparent shape in front of the listbox, using the width and height properties, which would then prevent the user from clicking the listbox. This would not stop tabbing to the listbox but then you can use Liam's solution using the when event to move the focus elsewhere.

(I said it was a kludge :)


>I did come up with a solution for this, but i dont like it.
>
>Ive played around with all the color options for a ListBox,
>(there are 4 sets of Fore/Back options)
>but when i disable the ListBox, the selected item(s) turn the same color as the unselected items.
>
>Any other ideas?
>
>VFP7
>
>Thanks,
>George
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform