"Nicol�s Zeitlin" <[EMAIL PROTECTED]> wrote in message
news:51491@palm-dev-forum...
>
> I need to dynamically create some fields when my application
initializes
> (don't ask)...
> I've written the following code in MainFormInit:
>
>    fieldP = FldNewField((void**)&frmP, 3000, x, y, 15, 15, stdFont, 1,
true,
>    noUnderline, true, false, leftAlign, false, false, true);
>
>    FldDrawField(fieldP);
>
> For some reason, however, the field is not drawn.. Any ideas? Is there
any
> other function I should call before the field is correctly
initialized?

Well, I don't think there is anything to draw here.  You've not inserted
any text into the field, and you have noUnderline set.

Try calling FldSetTextPtr or FldSetTextHandle first, then making it
draw.  You probably should use FrmShowObject rather than FldDrawField to
redraw the field, although the text setting call can cause it to be
drawn too.



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

Reply via email to