Okay, I tried the FrmSetActive() call, but to no avail.  It turns out the
blinky vanishes when I do a FldDeleteField and FldEraseField.  For now, I
can live with my workaround.  Thanks for the info though.

Michael Yam
Y Technology, Inc.
[EMAIL PROTECTED]


-----Original Message-----
From: Scott Johnson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, March 18, 1999 12:55 PM
Subject: Re: Bug? FrmSetFocus() does not turn on insertion point


Michael Yam wrote:
> Is there a way to turn on an insertion point?  My workaround is to set
> the focus to another field, then set it back to the field I really
> want.

Maybe this will help.  I had a similar problem yesterday, where the
blinky vanished after dismissing a modal dialog.  No amount of plausible
FldXxx or FrmXxx calls would make it appear.

Finally found the problem was that I wasn't calling FrmSetActiveForm
when calling FrmDoDialog to pop up the modal dialog.  The fix:

    FormPtr dialog = FrmInitForm( dialogID );
    FormPtr parent = FrmGetActiveForm();      // ADDED THIS LINE
    FrmSetActiveForm( dialog );               // ADDED THIS LINE
    FrmDoDialog( dialog );
    FrmSetActiveForm( parent );               // ADDED THIS LINE
    FrmDeleteForm( dialog );

Without those FrmSetActiveForm calls, everything worked fine except for
the blinky disappearing in the parent form.  This fixed it.

-slj-


Reply via email to