Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid as a Listbox
Message
From
17/01/2013 10:45:19
 
 
To
17/01/2013 10:40:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01563108
Message ID:
01563109
Views:
78
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform