--- 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/

Reply via email to