I like to delete the Constructor-default "OK" label and leave it blank,
then set my own in the event handler...CtlSetLabel doesn't do much more
than change the internal label attribute of the button without really
updating or doing any cleanup work on the previous label.  Of course,
if you need to change the label from "OK" to "I Understand" you may have
to resize the button manually, taking into account room on the form for
doing so...just two cents...

-Rus

>-----Original Message-----
>From: Scott L. Johnson [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 30, 2000 9:26 AM
>To: Palm Developer Forum
>Subject: RE: Bus Error on CtlSetLabel
>
>
>> From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
>> Make sure the new text length isn't longer than the original 
>> length of the control set in the constructor.
>> Non-field controls don't dynamically resize their text.
>
>But that's not an issue with CtlSetLabel because it just keeps 
>a copy of the
>passed string pointer, instead of copying the string into the control's
>internal buffer.
>
>-slj-
>
>
>-- 
>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