At 11:04 2002-12-2 -0500, you wrote:
Are you passing a pointer to a locally allocated string in your call to CtlSetLabel? You can't do that, since the OS may redraw the trigger later in the program's run, and if your string buffer was on the stack, it will likely be used for some other purpose at that time.Greetings,When I select the trigger to display my category list, the trigger text corrupts when the trigger is highlighted. The category list seems to display okay, but when it closes the trigger text is then blank if the category was not changed. If the category was changed then the new category is displayed, but only until the trigger is selected again, at which time the text corrupts again.
Make sure you only pass a pointer to a global string, a string constant, or memory allocated using one of the system memory allocation routines. If you pass a dynamically allocated string, you'll also need to free that string when the form is closed.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
