Hi all
I want to use CtlSetLabel to set the text in a selector trigger. I
understand I have to manage the string memory allocation myself. And FYI,
I'm using CodeWarrior as my dev tool.
What I'd like to know is: where is the original string that is set in
Constructor for that selector trigger stored? Can't I just change the value
in that, and not have to worry about allocating string memory elsewhere?
CtlGetLabel returns a pointer to a null-terminated string, so can't I just
reset that string somehow?
So, my ideal situation would be to set the selector trigger label in
Constructor to be "123456789" so the space allocated by Constructor is 9
characters long, then I can put whatever string I like as long as it's less
that 9 chars long, without having to allocate memory for it in my code.
Any thoughts/help?
Many thanks
Fran
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/