A corruption sometimes occurs that destroys the label of at least one control currently on the screen. It's not the control that was just added - it's one that was already correctly displayed. I think that what happens is that adding a new control requires that the entire form structure be recreated. The bug is that in some cases a label does not get properly copied from the old structure to the new one.
If you search the forum archives for "PrvFixupPointers", you'll find the old discussion of this. There's an internal Palm OS function that scans the form's data structure and adjusts any pointers that point to other data in the form to point to the new location. Unfortunately, the code for this in several versions of Palm OS is a bit naive, and it will also alter text labels if the text just happens to match the characteristics of what it's looking for.
I think it's a much safer thing for someone to write a "build form" library that builds a new form in resource form in memory, then creates a form from that. It would work on any version of Palm OS, and it would allow creating a form at runtime, although it wouldn't let you easily alter a form while it is being used.
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
