Thanks, Bob, I tried what you suggested.

I get similar results as when I used CtlSetLabel() originally - that is, the
label does not redraw unless you call FrmHideObject and FrmShowObject
before/after the call to FrmCopyLabel (that part is actually in the API docs
at least).  And in fact, this used _more_ memory than just using a field
like Dave suggested.  I also had to make a call to FrmGetObjectIndex() that
wasn't needed in the other version.  Although neither solution seems
perfect, using the Field control seems smaller.  What additional OS overhead
are you referring to?

-Marty


> >Thanks, Dave.  I replaced my Label controls with Fields (non-editable)
and
> >changed the code to copy the new string to a global buffer (one per
field)
> >and then called FldSetTextPtr() and FldDrawField().  Works much better.
>
> Yeah, but it's costing you much more memory.  You should probably not be
> using fields for this, especially not if a simple label will do.  It's a
> lot more OS overhead!  (So it uses more cycles, burning more joules...)
>
> Just use FrmCopyLabel, and your problems will be solved.
>
> --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to