On 4 Oct 2000, at 0:00, Palm Developer Forum digest wrote:

> Subject: FldSetTextPtr
> From: Nathan Peterson <[EMAIL PROTECTED]>
> Date: Wed, 04 Oct 2000 01:57:44 -0500
> X-Message-Number: 76
> 
> I'm trying to update a field with text.  The field is being drawn, but
> no text shows up.  Here's the code I'm using:
> 
> form = FrmGetActiveForm();
> FrmDrawForm(form);
> FldSetTextPtr(FrmGetObjectPtr(form,FrmGetObjectIndex(form,AboutField)),"testing...");
> FldDawField (FrmGetObjectPtr(form,FrmGetObjectIndex(form,AboutField)));
> 
> This is what I have in my .rcp file:
> 
> FIELD  ID AboutField AT ( 5 5 140 60) USABLE LEFTALIGN NONEDITABLE
> MULTIPLELINES HASSCROLLBAR
> 
> 
> -Nathan
> 
> 
 I am using metrowerks, but I think I know what's the problem - You should use 
SingleLine flag, or if it isn't good for your purposes, then use function 
FldRecalculateField (I think) before FldDrawField. Then it should work.



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