Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox programmatically select & highlight
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01515590
Message ID:
01515605
Vues:
66
>>Try doing it after the form is activated.
>
>Naomi,
>
>Thanks for your suggestion. I just moved the code that selects items in the listbox into the Activate method.
>
>Same result: items are selected, but they are not highlighted.
>
>Jim

Hmm.

I remember I worked on this problem (with my then colleague Mike Asherman) almost 10 years ago. There was some trick employed (like using Listbox when or Click method), but I don't recall right now details and wonder if I can find the relevant code.

However, I do have a class posted in Downloads section here that I think was based on that listbox with saved selections (although may be the class I posted is grid's modification instead).

UPDATE. Looks like I only posted the multi-select grid version of the class and never posted the listbox based version (which was chiefly designed by Mike)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform