Hello,

Im trying to set the focus to a text entry field in my program,

I was under the impression that

    FormPtr frm = FrmGetActiveForm();
    FrmSetFocus(frm, FrmGetObjectIndex(frm, MainResult1Field));

would do the trick... but i've had no success in my program.

I've tried calling FrmSetFocus in my main forms init function, and directly
after recieving the frmOpenEvent event.

//example
                case frmOpenEvent:
                        frmP = FrmGetActiveForm();
                        MainFormInit( frmP);
                        FrmDrawForm ( frmP);
                        handled = true;


            FrmSetFocus(frmP, FrmGetObjectIndex(frmP, MainResult1Field));
// end example


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to