Hi Joe ,
Do I need to allocate memory to the fieldPtr ....
Thanks
Rohit
> ----------
> From: Joe[SMTP:[EMAIL PROTECTED]]
> Reply To: Palm Developer Forum
> Sent: Monday, April 08, 2002 2:50 AM
> To: Palm Developer Forum
> Subject: RE:Dynamic Resource - urgent
>
> --- Rohit_Shankar wrote:
> > Thanks for the info .... can some one just see whats wrong
> > with the code below ... i m simply trying to create a field
> > programatically ....
> >
> > FontID fntID = FntGetFont();
> > FormPtr frm = FrmGetActiveForm();
> > fldPtr = FldNewField((void **)frm, 2000,100, 100, 20,
> > 10,largeBoldFont ,12 , true ,noUnderline ,false , true ,
> > centerAlign,
> > false, false,false);
> > FldDrawField(fldPtr);
>
> 1. You didn't declare fldPtr.
> 2. You are using "noUnderline" where it expects a boolean (use false).
> 3. frm is a FormPtr but you try to cast it to void **. What you should
> use is (void **)&frm.
> 4. 10 isn't big enough for the height when using largeBoldFont. Try 16
> or more.
>
> Your compiler should have caught most of these errors.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/