Thanks for replies. Glad it's not just me.
Sounds like dynamic form data structures are not being fully respected by the OS between closedown and re-open. And to answer an earlier question, I'm seeing the corruption on PalmOS 4.1 (physical IIIc) and 3.5 (m100 on emulator). I've resigned myself to passing the frmCloseEvent to the OS and allowing it to discard the form control structures, and rebuilding the form from scratch when next it's needed. Better to lose out on a little performance than to chase lots of little and potentially insoluble problems. Cheers David On Fri, 2003-01-17 at 16:57, Rob Larson wrote: > I have a similar problem with dynamically created controls. Upon redrawing > a form with maybe 10 dynamically created controls, one of the control labels > was getting trashed. Apparently when the OS shuffles the form data around > (say, one of the controls is deleted), it can fail to copy the label data to > its new location. Everything is properly allocated, except the label is > trash. > > My solution was to run through the database, comparing the intended label to > the current control label. When they don't compare, I reset the label to > the one in the database. If everything works properly, then there is no > fixup. > > Ugly, but not doing it is even more so. > > As I recall, form titles have a fixed maximum length. Whatever length you > use when the title is first declared becomes the maximum length that will > work. You can set any length title you want, but if it exceeds the > available space, it just trashes the next control in the form. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
