>My tab window is first opened with a FrmPopupForm and in the event handler
>for this window I check the tab on a penDownEvent and then would like to
>close the current form and load a new one that runs off the same event
>handler. Is this possible? All I have been able to do is a FrmReturnToForm
>and posting a message to my main form to do another FrmPopupForm. But then
>the main form flashes by for a split econd which is not very nice.
I think you're confusing two things. CHANGING forms can be triggered in
any number of ways - in response to tapping on a button, selecting a
menu, or by detecting a pen down or pen up event (on a tab or gadget or
whatever). There shouldn't be any difference in the code that actually
changes forms no matter what event triggers the change.
It would seem that there are two problems - one is that your window is
opened with FrmPopupForm rather than FrmGotoForm; the latter is "safer" I
think in general. The second is that you are trying to run multiple forms
off the same event handler. Why? I have run multiple "pseudo-forms" off
one event handler, but it was really one form which I toggled back and
forth between two (or more) states by showing or hiding various objects,
controls, etc. Even that can get more complicated than it's worth and I
don't particularly recommend it as a technique although as I said it does
work.
My only use of tabs is in The Athlete's Diary -
http://www.stevenscreek.com/palm/tad.shtml shows some screen shots of it,
and I certainly found no problems there, but the three tabs switch
between three different forms, each with their own event handler.
Steve Patt
President, Stevens Creek Software
http://www.stevenscreek.com/palm
Best PQA ("ePQA"), PalmSource 99
Best Application ("PizzaScan"), Palm Developer's Conference 1998
First printing software for the Palm - September, 1997