"Viraj Chatterjee" <[EMAIL PROTECTED]> wrote:
>Use CtlSetLabel...
>eg.:
> CtlSetLabel(((ControlPtr)FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
>LabelObjID))), newstr);

If it's really a label object, I don't believe this is correct,
even though it appeared to work in earlier version so of the OS.
CtlSetLabel sets the text associated with a control such as a
pushbutton or checkbox.  But labels themselves aren't controls,
they're lighter weight objects.  You have to use FrmCopyLabel
instead, and make sure the new label length isn't longer than
the length as defined in the original resource.

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