At 22:06 08/12/2001, you wrote:
>--- Steve Mann <[EMAIL PROTECTED]> wrote:
> >
> > No, that works fine. FrmDoDialog only draw
> > the form if it hasn't yet been drawn.
>
>Alas. Well, it still would be interesting to know
>what happens if he uses WinSetDrawWindow() instead of
>FrmDrawForm() before calling FrmDoDialog().
What Steve mentions is what all older threads in this forum state, namely that
FrmDrawForm();
FrmSetFocus();
FrmDoDialog();
is legal and should work. What I observe is that if the underlying (main)
form has an object which has the focus, I have a blinking insertion point
visible on top of my main form after FrmDoDialog() returns. (and my main
form doesn't have any editable fields whatsoever)
I don't see why WinSetDrawWindow() would have any impact on the insertion
point, it certainly has not been mentioned before.
Also, how come things work ok if I temporarily turn off the focus of the
underlying form?
prevForm = FrmGetActiveForm();
prevFocusObj = FrmGetFocus(prevForm);
FrmSetFocus(prevForm, noFocus);
FrmInitForm(frm);
FrmSetActiveForm(frm);
FrmDrawForm(frm);
FrmSetFocus(frm, /* editable field */);
FrmDoDialog(frm);
FrmDeleteForm(frm);
FrmSetActiveForm(prevForm);
FrmSetFocus(prevForm, prevFocusObj);
The problem has disappeared now that I do it like this, but I don't
understand why I need mess with the prevForm's focus...
Gert-Jan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/