FrmPopupForm works by putting events on the event queue. I think it puts a
frmLoadEvent on the queue, and possibly also a winExitEvent and
winEnterEvent. These events, when processed normally, cause the form to get
loaded and then get a frmOpenEvent, etc. Since the event loop is part of
each Palm application, it is up to you to follow the rules if you want this
kind of thing to work normally. Look in the tutorial to see how this is
done. The event handlers for each form are normally set as part of the
handling of the frmLoadEvent. If your event loop calls FrmDispatchEvent,
it'll pass the event to the current form's event handler. Start with the
same event handling used in the tutorial, and change it only if you need to
implement some unusual functionality such as timed animation. For most Palm
applications other than games, the basic event handling is pretty much the
same, so you can just cut and paste the necessary code from the tutorial or
one of the example applications such as Memo Pad.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to