Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid as a Listbox
Message
De
17/01/2013 10:45:19
 
 
À
17/01/2013 10:40:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01563108
Message ID:
01563109
Vues:
77
>I have a grid setup to resemble a listbox. When the grid is first activated
>the top row is highlighted. I would like for there to be no initial highlighting.
>Is this possible?


I don't know if there's a direct way to do this. If I had to do it right now, I would create a form (or custom grid class) property, which is initially set to .f.. Then I would populate the Dynamic* colors with white for the background so even if it is selected, it appears to NOT be selected. Then, after the grid receives focus, I would change the property to .t. so the Dynamic* color would show the selection.

Others may have better solutions for this, but this one would work. It's just kind of clunky. :-) Creating a custom grid class to handle it this way would make it less clunky.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform