Gert-Jan Vons wrote:
> If I add "FrmSetFocus(prevForm, noFocus);" at the top of my PrefDialog() 
> function, the problem goes away, but I don't understand why...

I think it's important to get the focus out of prevForm while it's still the
active form. I haven't investigated exactly why this is the case, but
looking at the code for the find dialog (just an example of a dialog with a
field in it), I find that it sets tho focus to the field in the dialog
before rather than after setting the active form. In fact, it leaves it to
FrmDoDialog to set the active form to the dialog.

In short, I think your code should work properly even without the
"FrmSetFocus(prevForm, noFocus);" at the top of PrefDialog() as long as you
get rid of "FrmSetActiveForm(frm);".
-- 
Peter Epstein

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to