In another thread I noted a backwards-compatibility bug in Cobalt (see
"Cobalt (OS6) simulator does not return to app from LaunchWithCommand to
NetworkPanel!") and, as is all too typical for me, the thread had no
response.  OK, well I'll take the other tack now and fix it for myself by
kludging around it.  I *know* that Internet.prc is sub-launch savvy as it
adds a "Done" button when sub-launched from the preferences.  So what I want
to know is the proper API call to do it.  I have tried the following two
calls and neither worked (Internet.prc never got launched at all):

if (errNone == DmGetNextDatabaseByTypeCreator(
   true, &state, sysFileTApplication, 'icnc', true &cardNo, &lid))
{
   SysUIAppSwitch(cardNo, lid, // THIS DOESN'T WORK!
      sysAppLaunchCmdPanelCalledFromApp, NULL);
   LaunchWithCommand(sysFileTApplication, 'icnc', // NO WORKY!
      sysAppLaunchCmdPanelCalledFromApp, NULL);
} else {
   // This has the original bug where Internet.prc "returns" to
   // preferences panel instead of my app
   LaunchWithCommand(sysFileTPanel, sysFileCNetworkPanel,
      sysAppLaunchCmdPanelCalledFromApp, NULL);
}

So how does the preferences panel sub-launch it?  If I had access to the
source, I would have my answer...


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

Reply via email to