Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual MaxFrame read-only data entry grid/add button
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Visual MaxFrame read-only data entry grid/add button
Miscellaneous
Thread ID:
00729685
Message ID:
00729685
Views:
58
I have a frmDEGrdNav2Pages.

On the bottom of the second page, I put a grdDataEntry for child records, and cmdDEGridAdd/cmdDEGridDelete.

At first I made it a grdPicklist, because it's only for choosing records to be edited on the third page. But I wanted framework Add/Delete buttons, and I started to read zReadMe methods, and figured out I wanted the other classes above.

Question is, when the user clicks the Add button, I want focus to go to the first textbox on the third page, not to the grid (which I've made read-only and set all appropriate PEMS according to zReadMe, etc.)

The documentation mentions that you might want to use this Grid/AddButton/DeleteButton combination to do data entry on a called modal sub-form "or other mechanism", but it doesn't mention where to put code to go to the "other mechanism." I've tried the grid's ShellAfterAppendBlank, which of course doesn't work because the setfocus stuff happens in the grid after that method's called. I tried overriding the grid's AfterAppendBlank and AddAction methods each with:
IF DODEFAULT()
    This.Parent.Parent.Page3.txtThing.SetFocus()
ENDIF
but no dice.

Help?

TIA,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Next
Reply
Map
View

Click here to load this message in the networking platform