Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00230799
Message ID:
00230809
Views:
24
>We don't want any cell in the grid to get focus, but we need to be able to allow the user to scroll up and down.
>
>Things already tried:
>grid.when return .f. - can't scroll up and down.
>
>put shape over grid covering everything but the scroll bar - when the user clicks on the scroll bar, cell 1 column 1 gets focus.

I've done this by doing this in the grid Scrolled event like this

this.parent.cmdhidden.setfocus

where cmdhidden is behind the grid, so you can scroll the grid, but it loses focus immediately...works for this particular situation...if you have a visible object you'd like to keep the focus on, that's even better...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform