Sorry for replying late.
It's a custom table item. I initialized the field the same way as they did
for the Dolloar amount field
in the Expense application. I remember it worked fine when I first created
it, then one day it stopped
working for no appearant reason at all.
> -----Original Message-----
>
> Is the table item that had the focus on the form you are trying to set the
> insertion point on, a custom table item (that is, not one of the editable
> text type items)?
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 04, 1999 8:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Returning focus to a field
> >
> > I am experiencing the same problem with table fields, i.e., the
> insertion
> > point won't show up.
> > In my case, the field actually has the focus, because it does receive my
> > input. If I jump to
> > another form which has regular (non-table based) fields and set focus on
> > one
> > of the fields, then
> > when I come back to the table field, the cursor will show up from there
> > after.
> > I have tried FrmSetFocus(), FldGrabFocus(), InsPtEnable(), none of them
> > worked. I am glad
> > somebody finally brought this up. (Shaolin Hu)
> >
> > > -----Original Message-----
> > > From: Fawcett, Mitch [SMTP:[EMAIL PROTECTED]]
> > >
> > > I am using code similar to yours to set the focus back on the field.
> It
> > > just seems like in the instance where I leave the first form with a
> > table
> > > item highlighted, the focus doesn;'t want to go back to the field. If
> a
> > > table item wasn't highlighted when I leave the first form, I don't
> have
> > a
> > > problem setting the focus back on the field.
> > >
> > > > -----Original Message-----
> > > > From: Bozidar Benc [SMTP:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 03, 1999 4:22 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: Returning focus to a field
> > > >
> > > > This code always worked for me (in both of your scenarios):
> > > >
> > > > fldIndex = FrmGetObjectIndex(frm, MyField);
> > > > FrmSetFocus(frm, fldIndex);
> > > >
> > > > Bozidar
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Fawcett, Mitch [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, May 03, 1999 9:56 PM
> > > > > To: 'PalmDevForum'
> > > > > Subject: Returning focus to a field
> > > > >
> > > > >
> > > > > Has anyone encountered anomalous behavior when returning to a
> > > > > form as in the
> > > > > following:
> > > > >
> > > > > Scenario #1)
> > > > > FormA is opened and a table item is selected.
> > > > > FormA calls FrmPopupForm (FormB).
> > > > > FormB calls a FrmReturnToForm (FormA) and tries to put the focus
> and
> > > an
> > > > > insertion point in a field on FormA. However the insertion point
> > does
> > > > not
> > > > > appear in the field. There is no complaint from Palm.
> > > > >
> > > > > Scenario #2)
> > > > > The exact same scenario as above except FormA starts off without a
> > > table
> > > > > item being selected.
> > > > > In this case there is no problem with FormB returning to FormA and
> > > > having
> > > > > the insertion point show up in the field on FormA.
> > > > >
> > > > > I don't expect a whole lot of thinking on this one, just has
> anyone
> > > seen
> > > > > anything like this happen before I go into a major code hunt.
> > > > >
> > > > > Thanks.
> > > > >
> > > > >
> > > >