Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Visual MaxFrame read-only data entry grid/add button
Mensaje
General information
Foro:
Visual FoxPro
Category:
Productos de terceros
Miscellaneous
ID de la conversación:
00729685
ID del mensaje:
00730073
Views:
14
Rich,

In addition to what Kendall said, you might want to take a look at the CustomSetFocus() method.


>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,
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Responder
Mapa
Ver

Click here to load this message in the networking platform