Well, following the example of the Address app, the trigger's length is set to zero, its origin is set to top: 0, left: 160, and its label is empty. So basically it is off screen. I have no idea why they do this, but not knowing completely what I'm doing yet, I just followed their example. It appears that the label for the control is empty, but I suppose it could be sixteen spaces?
Just for clarification, I'm using the constructor to layout the forms and other resources. Also, the trigger's "left justify" is unchecked, otherwise the constructor gives an error when you try to move it off of the visible screen. Is this causing the problem? If so, how does the Address app get away with it? If you don't set a label for the trigger in the constructor, do you have to allocate space for the label at runtime if you want to change/assign a label to the trigger? I guess that makes sense, but of all the examples I've seen (PalmOS web site docs included), no one explains the set-up of the form objects to make the system categories work... I spent 4 hours only to find out the list element that is used for the categories has to be set "unusable". Where that is documented I have no idea, but it was frustrating as hell figuring it out. Thanks, Matthew > Try making sure you're not stuffing more characters into the trigger label > than were present in the original that you created in the constructor app. > (if you're dynamically allocating memory, make sure you add 1 more byte > for > the string terminator) I use to set the default text in my triggers > (using > Constructor) that I would expect to find in the running app. Don't know > if > there is better or updated method. > > ----- Original Message ----- > From: "Matthew Hagerty" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Monday, December 02, 2002 11:04 AM > Subject: Category trigger text corruption > > >> 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. >> >> Any insight as to what might be going on would be greatly appreciated. >> I >> have read all the Palm documentation I can find, examined the Address >> application code, and done everything I can possible think of to try and >> correct this. There is really nothing special about my code either, at >> this point it is very minimal and mostly copied from the Address app and >> the online documentation. >> >> My environment: >> Code Warrior 8 >> WinXP >> PalmOS emulator with 4.1 ROM running as a IIIc >> >> Thanks, >> Matthew >> >> -- >> For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ >> > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
