On Fri, 30 Nov 2001, Avilla, Dane wrote: <snip> > > The customer would like the application to not allow users to leave the > application while editing records, period. It appears the easiest way to do > this is by conditionally handling appStopEvent in the AppEventLoop: if > appStopEvent is seen, and the user is editing a record, set the event to a > nilEvent and popup a notification dialog. > <snip>
you can get around this by good design. why dont you store the active state of the data entry and when you re-enter the application put the user back where they were with the data they had? make a rule such that records are added to the database only when validated.. any "partial" records are not never saved until they should be. the user should be able to jump out to their address book to cut and paste a phone number for a field inside the record? > I looked back through the archives and found a few similar discussions about > ignoring appStopEvent and none mention impacts other than "your app won't > exit", but I'm a little concerned that there may be some memory leaking > somewhere if I don't allow appStopEvent. I'm specifically concerned about > things like beam receiving, where data is received and then the app is > switched to a display app (ie: the launcher in the case of receiving a > beamed app). I made a little test app to check this (it traps appStopEvent > unless a specific button is pressed), and it doesn't seem to be causing any > problems with receiveing beamed apps, but I wanted to get other opinions as > to what other impacts there may be on stability or overall app robustness by > trapping appStopEvent. if you have a beam receive.. it'll jump out to the launcher when done [ie: appStopEvent].. if you want to do it this way, you'll have to disable beam receives... too much depends on appStopEvent :) its best not to mess with it :P design around it. // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
