On Thursday 03 April 2003 03:14 pm, Bob Baker wrote:

> I've installed (working) code that replaces the EvtGetEvent function.
>  During the execution of my code I need to (asynchronously) start a
> 'Help' application.  This 'Help' app does not want to cause the current
> application to end but needs to display a single screen for a preset
> amount of time (the screen to be displayed varies based on passed info).

Here's what I do; http://rallypilot.sourceforge.net/work/pbjtime.zip


    FormActiveStateType formState;

    /* launch it */
    if ((DmGetNextDatabaseByTypeCreator(true, &searchInfo,
        sysFileTApplication, 'PBJT', true, &cardNo, &dbID) == 0)) {
        /* save all of the current app's UI state */
        FrmSaveActiveState(&formState);
        SysAppLaunch(cardNo, dbID,
            sysAppLaunchFlagNewStack|sysAppLaunchFlagNewGlobals,
            sysAppLaunchCmdCustomBase+1, NULL, &res);
        /* restore all of the current app's UI state */
        FrmRestoreActiveState(&formState);
    }

Since my app will now have globals, I just have a little flag I set in the 
code for when it is launched this way.  In particular, I don't use the 
regular event chain to switch forms to mine, but rather I do the steps 
manually.  This is because I didn't want the original form handler to be 
involved in the process.

It's a bit cheesy.  But then, normal timer dialog code does pretty much the 
same thing.

-- 
/* Chris Faherty <[EMAIL PROTECTED]> */

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

Reply via email to