Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GotFocus / LostFocus for grids?
Message
From
17/09/1998 21:51:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00137789
Message ID:
00138051
Views:
12
Hi Colin:

This is doable :-)

Create a container class. Set BorderWidth to 0 and make it Transparent (the idea is to make it invisible). Put a Grid object in the container. Put whatever code you like (if at the Class level) in the Got/LostFocus of the *container*.

Now put an instance of the container in your form. Change or add Got/LostFocus code to this container instance if you like. Whenever the user tabs on or clicks the grid, it's underlying containers GotFocus will fire and the same applies to when they click off or leave the grid.


>How do I trap for when a grid gets and loses focus? TIA.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform