Why would there be a limit?  The 3.5 version of the Palm OS Reference states
the following:

"This function stores the newLabel pointer in the control's data structure.
It doesn't make a copy of the string that is passed in."

It does also state that CtlSetLabel resizes the width of the control based
on the label, but the 100 characters you already tried is already a whole
lot more than will fit on a 160-pixel-wide screen, so I wouldn't expect
there to be an artificial limit either.

-----Original Message-----
From: Paul Nevai [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 05, 2001 4:43 PM
To: Palm Developer Forum
Subject: a CtlSetLabel () question


What is the largest size of an allowed newLabel in void CtlSetLabel
(ControlType * ctlP, const Char * newLabel)? My guess is that 32K.  I tried
it with Constructor and the upper limit is certainly greater than 100.  Is
there a common sense limit such as 128 [or even less]? Paul N.

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

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