Hi Tony, FrmPopupForm doesn't create a new form, but creates an event to create this form. That means that after calling FrmPopupForm the active form is still the old one.
The event handler (frmOpenEvent) ist the right place to do something like that. IMHO you can't use a popup form without an event handler anyway. Am Mittwoch, 3. November 2004 19:43 schrieb Tony Janke: > Is it possible to set the focus in a field on a pop up form? I am popping > up a form for the user to enter a "file name". > > > case 1003: // CREATE NEW > // get filename from user > FrmPopupForm(SaveFileNameForm); > pForm = FrmGetActiveForm(); > > // PROGRAM CRASHES HERE CUS THERE IS NO EVENT HANDLER???? > FrmSetFocus(pForm, 1003); > > > I would prefer not to create an event handler for this simple task, but I > will if I have to. Any help would be greatly appreciated! > > thanks, > > ~Tony -- Mit freundlichen Gr��en Helmut A. Bender Helmut Bender GmbH -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
