Use a gadget to draw your tabs. The Palm OS has an API to check if your
taps are within the bounds. No need to look for a whole bunch of pen
events.
-----Original Message-----
From: Stringer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, November 23, 1999 8:19 AM
Subject: Re: How to simulate tabbed windows
>I successfully implemented this technique for a different purpose.
>Basically, if the user taps the screen title then I pop-up a screen with
>context-sensitive help.
>
>But I did it a little differently
>1) On penDownEvent, I just set a static Boolean value to True if the stylus
>is in the correct part of the screen, otherwise False.
>2) On winEnterEvent, I clear the static Boolean value
>3) On penUpEvent, if the stylus is in the correct part of the screen and
the
>static Boolean is True, I create and show the help screen, otherwise I
>ignore it. I also clear the static Boolean.
>
>I think your problem is you are acting on penDownEvent instead of
penUpEvent.
>
>Roger Stringer
>Marietta Systems, Inc.
>
>
>>Hi,
>>
>>Does anyone have any tips on how to do tabbed windows on the Palm? By
>>tabbed windows I mean there is a tab on top and clicking on it loads
>>another form window.
>>
>>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.
>>
>>Any ideas?
>>
>>Chris
>>---
>>Christian Vandendorpe ([EMAIL PROTECTED])
>>http://www.zorglub.com
>
>
>