That certainly makes for some difficult to maintain code. Now I have to go
to every form and make sure any label that I might change programmically has
a long enough static string. I then have to create defines to limit the
lengths of my strings in my code. And I have to remember that if I ever
change the length of the defines, I have to lengthen the string in the
forms. sick!
Steve
"David Fedor" <[EMAIL PROTECTED]> wrote in message
news:43205@palm-dev-forum...
>
> > My app sets the text associated with a label using CtlSetLabel(). It
> works
> > fine on OS < 4.0. However, on 4.0 I get the following error message
from
> > the emulator: "...Control.c Line 543, Not a control object."
>
> What sort of object are you passing in to CtlSetLabel? If you're like the
> normal case that this message is designed to help, then you're probably
> trying to change the text of a label object. A label object isn't a
> control. Use FrmCopyLabel.
>
> CtlSetLabel used to work but that was only by luck; the routine didn't use
> to check its object type and the structs happened to be similar enough in
> this respect. But that isn't guaranteed to be the case in the future.
>
> -David Fedor
> Palm Developer Support
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/