Greetings,

I am having trouble using FrmGetFormPtr(). I keep getting a Nil Ptr exception 
with the following code:
----------------------------
FieldPtr fldNew;
FormPtr frmNew;
FrmGotoForm(MainForm);
frmNew = FrmGetFormPtr(MainForm);
fldNew = FldNewField (
                 (void **)&frmNew,
                  1244,
                  20,20,
                  50,15,
                  stdFont,
                  20,
                  true,   
                  grayUnderline,
                  false, false,  
                  leftAlign,
                  true,false,false );
FldSetUsable(fldNew,true);
FldSetInsertionPoint(fldNew,0);
FldDrawField(fldNew);
-------------------------

What I am trying to do is add a dynamic textfield to a form created using the 
xrd.

If anyone one could help me on this I would be extremely grateful.

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

Reply via email to