Logan's advice is spot on correct, but there is *at least* one more
method.
I define all the labels on my forms to be empty at compile time, and set
them at runtime with...

CtlSetLabel
Purpose Set the current label for the specified control object. If the
control
object currently has its usable and visible attributes set to true,
redraw it with the new label. (See ControlAttrType.)
Prototype void CtlSetLabel (ControlPtr ControlP,
CharPtr newLabel)
Parameters ControlP Pointer to a control object.
newLabel Pointer to the new text label. Must be a NULLterminated
string.
Result Returns nothing.
Comments This function resizes the width of the control to the size of
the new
label.
The pointer passed to this function is stored in the control's data
structure; the control doesn't make a copy of the string passed.

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

Reply via email to