Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Colored disabled items in Listbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00761279
Message ID:
00761559
Vues:
28
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform