I did this with a gadget that sits on every form and "hosts" the tab-bar.
When each form opens, it attaches the tab-bar to the "host" and draws it
with the correct tab active. When the form receives a pen-down it
dispatches the coords to the tab-bar and determines whether it was a click
on a new tab or not. Each tab has an associated ID (we have a CTabBar class
that manages everything) which we set to the form ID. The tab-bar can then
tell us which form should be made active. I just use FrmGotoForm after
pre-loading all possible forms at startup. I have not noticed any
significant flicker. Is the "save behind" attribute set for your forms?
Our forms do have quite a few graphics on them so I would think if there
were going to be flickering problems we would notice them in our app.
Good Luck,
will
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 9:48 AM
To: [EMAIL PROTECTED]
Subject: Re: How to simulate tabbed windows
The problem is not the tabs, I've got that working. The problem now is that
when a tab is clicked I do a FrmGotoForm to go to to the new form and then
redraw my tabs but then there is a flicker on the screen between the time
the old form is taken out of the screen and the new form is drawn. Not very
nice. The only solution I see is to have all the controls for all tabs on
one form and then show or hide according to the tab pressed. But this is a
design nightmare in constructor.
Any more ideas?
Chris
On Tue, 23 Nov 1999 09:18:13 -0500 [EMAIL PROTECTED] wrote:
> 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
> >
> >
> >
This message sent using EMUmail. http://EmuMail.com