At 12:18 AM 5/5/2004, you wrote:
At 12:45 PM 4/26/2004, you wrote:
I launch a Network Panel from within my app and want to return to my app.  I
use this command:
LaunchWithCommand(sysFileTPanel, sysFileCNetworkPanel,
                  sysAppLaunchCmdPanelCalledFromApp, NULL);

This works fine and returns to my app for all OS versions except Cobalt
(OS6) on the simulator.  For Cobalt, even though it does provide a "Done"
button, it ASSUMES that the app that launched it was the "Preferences" app
which is where it "returns" me.

I just looked at the Palm OS Cobalt code, and you're correct. The current implementation of pref panels on Cobalt will only return to the Prefs application, as best I can tell. When you hit "Done", the panel is actually launching the system's default application.


As best I can tell, the reasoning is that you can use the Palm OS Protein API SysAppLaunch to call the pref panel now and not have to use special system mechanisms to return to your application. I don't know if you can do that from a 68K app on Palm OS Cobalt, but it's worth trying.

OK, I did more research on this, building a 68K app that does nothing other than list the pref panels on your device, allowing you to launch them with the sysAppLaunchCmdPanelCalledFromApp launch code.


I found a few things. First, there's no "Network Panel" on Palm OS Cobalt. If you go to prefs, you won't see "Network" in the list. There is a hidden 'netw'/'panl' database that acts as a proxy to launch the standard network configuration service.

Second, I was wrong in my initial analysis of how sysAppLaunchCmdPanelCalledFromApp works. I was able, from a PACE app, to launch the General panel and return to my app using the same mechanism that works on Palm OS Garnet. However, there are some PalmSource-generated prefs that don't handle that launch code correctly, including Buttons, Screen, and Owner -- they all don't provide a "Done" button, and may not even show the whole interface when launched that way.

The surprise was that when I tried calling the Network pseudo-panel on a debug 6.0.1 simulator, I got expected behavior -- it appeared, showed a Done button, and when I hit it, my launcher app was restarted.

Maybe this is a bug that's fixed in 6.0.1... have you downloaded the seeding version of that OS simulator from PalmSource yet?

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to