Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Controls - need ideas
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Grid Controls - need ideas
Miscellaneous
Thread ID:
00843824
Message ID:
00843824
Views:
44
I have an aesthetics question about grid controls. Typically, when a grid control has the focus and there are not yet records in the grid, there is no visual cue. If there was a record, there would be a highlighted field or a flashing cursor, but without one there is nothing to indicate what control has the focus.

In VFP 7.0, I handled this problem in my programs by having the grid header fields change color. I made the header's ForeColor blue when the grid had focus and black when it did not. In VFP 8.0, if Windows Themes support is enabled, this option goes away. You can't control the .ForeColor and .BackColor values for the grid with Themes enabled. (Actually, you can, but the values are ignored.)

If the cursor moves over one of the grid header fields, there is a highlighted underline at the base of the header field. However, if the user TABs into the control with the keyboard, this doesn't happen.

I'd like to get some opinions on how to indicate focus to the user. I've considered setting the .BackColor or .GridColor properties, but I'm not certain I like either of those solutions. Any thoughts?
John Groft
Consultant
Computer Task Group, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform