Hello,

I've been trying to get beaming working for my app, and I can send and receive
data just
fine.  One thing that I'd like to do is control the form that is open just
before receiving a beam.

Here's the sequence of events:
- User taps on a record on the main form to get more information about that
record.
- The "info form" pops up, with whatever extra info.  This form includes the
ability to beam the record.

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.  

Here's the direction I've been going:

        // see if this app is running
        if(launchFlags & sysAppLaunchFlagSubCall) {
                // if it is, close any info windows that might be open
                if(FrmGetActiveFormID() == InfoForm) {
                        FrmReturnToForm(MainForm);
                }
        }
        // start receiving the data
        error = RecvDatabase(exgSocketP);

Now it seems to me that when I do the FrmGetActiveFrmID, the currently active
form is the one asking the user if they want to receive the data, not my Info
Form.  Is this something that's possible to do?  I was thinking of enqueing an
event to push the "Done" button on the info form before anything came in.  Will
this help me out?

I've tried placing the above code in handlers for both the
sysAppLaunchCmdExgAskUser and sysAppLaunchCmdExgReceiveData launch codes, and
haven't really gotten the results I want (mostly fatal errors :).

Looking for a little direction on this, Thanks.

CodeWarrior 6.0; Windows 98; SDK 3.1

-- 
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