Hi, all!
I've been asked to build a demo application that will alternate
messages with "screen shots" from the real application. (This is
not a training device, it's more of a sales tool.)
I was initially asked to have an OK and an Exit button at the
bottom of each screen (OK to go to the next screen, Exit to,
well, exit).
I got it working with the buttons, and now they're asking
instead for a way to have it automatically flow from one screen
to the next on a timed basis, without the user pressing OK.
So I reworked some things, and I'm now processing the message
form and the app forms in my event loop without actually using
event handlers or dispatching events. (I found a presentation on
palm.com talking about animation, using TimGetTicks() to figure
out when the next action should occur, and using EvtGetEvent()
with a 0 or 1 to keep control while time was passing.)
After all that, here are my actual questions (sorry it took so
long!):
1) When I display a form, I use FrmGetActiveForm() to get the
form that's currently on the screen, then FrmEraseForm() to
"Erase a form from the display." (Quoting from the SDK
reference.) Trouble is, FrmEraseForm() doesn't erase the form,
and my forms "bleed-through" each other. In other words, if form
A is currently on the screen, and I then display form B, I see
the controls for form B, but form A shows through between the
controls for form B.
2) If I'm to do a screen show, automatically moving from one
screen to the next, I'd still like to have an Exit button. (Yes,
I know that they could simply select the system icon and get
back to the launcher, but this is for people who may not have
any experience with a PDA.) I can't figure out how to get it as
a push of the exit button. I get the penDownEvent, but I don't
get a ctlSelectEvent, the way I do when I'm processing forms
normally. Any suggestion on how I can tell if they've clicked on
the Exit button?
Thanks very much,
--Scott Sumner-Moore
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/