On Mon, 7 Oct 2002, Ben Combee wrote:

> There are definitely dynamic control creation problems on Palm OS 3.5
> and earlier... among other things, the code that resizes a form's
> storage can corrupt pointers.  Search the archives for "PrvFixupPtrs" or
> "PrvFixupPointers" to read all the discussion of this. 

Lovely... absolutely lovely :-)  This would also explain FrmCloseAllForms
barfing if I removed the fields at the end before calling it.

One idea I could try tomorrow is to have 2 fields in the form that start
off as hidden and get used to simulate the effect of dynamically created
fields.  One gets shifted around to draw inactive fields, and one gets
moved around as the field that currently has focus.  I'm already
processing penDown events in the area where the fields would be, so I
could move/show the latter field and post a fldEnterEvent to make it work.
If ctlSelect events are generated for gadgets (not sure about that), those
would probably be better.  Thoughts on that idea?  Anything necessary that
I'm missing? 

-----------------------------------------------------------------------
Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/
Software Developer  //  Gamer  //   Webmaster  //  System Administrator
"I always wanted to be somebody, but I should have been more specific."
   -- Lily Tomlin



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to