On Mon, 12 Jun 2000, Danny Epstein wrote:
> "Brian Mathis" <[EMAIL PROTECTED]> wrote in message
> news:13985@palm-dev-forum...
> > One thing that I'd like to do is control the form that is open just
> > before receiving a beam.
> 
> The receiver doesn't generally have to be running a particular app, or be in
> a particular form. What happens when a beam comes in is:

Yes, I understand this.  I can receive a beam just fine when my app is not
running, and even when my app is running.  My question becomes relevant
in the case that 1. My app is running, and 2. an Info form is being
displayed.

When the info form is being displayed, a database is open.  If the user
happens to be receiving a database with the same name as the one that's
open, this will likely cause an error when the new database tries to be
written (if I'm wrong about this, enlighten me).  Also, if the database
coming in has other information that is different than the old one, that
will be incorrect on the info form as well.

I would like to get around this by simply closing the info form just
before the app starts to receive.  This will result in the database being
closed and the display returning to the main form.

[..]

> > What I want to happen, as the beam receive comes in and the "info form" is
> the
> > active form, is to have the app return to the main form before starting to
> > receive the data.
> 
> You should wait for the goto before switching forms.

Yes, I see that this may be the only way to do this, in which case it's
probably not useful to me.

[..]

> This won't work because you app's event loop is locked up, so it'll never
> get the events that were queued by FrmReturnToForm.
> 
> Why do you want to go to the main form before receiving? I can see that you
> might want to save any changes in the current form.

The info form is read only, it just displays some information.  There's
nothing it needs to save before closing.

I suppose, based on the info you have provided, that I may need to
redesign my app a little.  I should probably close the database after I've
drawn all the info to the info form.  Then, use the CmdGoTo event to just
reset to the main form.

-- 
Brian Mathis
Direct Edge
http://www.directedge.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to