Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activecontrol in container puzzle
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Activecontrol in container puzzle
Miscellaneous
Thread ID:
00080275
Message ID:
00080275
Views:
64
I have this grid within a container in a form. I'd like to control the exit from the grid through the keyboard, like when the user presses enter, the current record in the cursor underlying the grid is selected and further action can be taken.

You do that through the keypress method of the form. You need to overwrite default behaviour for the grid that is in the container. You'd think that when the focus is on the grid, the thisform.activecontrol.name would return the name of the container. Wrong: it returns the name of the grid.

Bug or feature by design?

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Next
Reply
Map
View

Click here to load this message in the networking platform