 |
Thursday, November 13, 2003 |
 |
|
Panel Launching Behavior
Here's an underdocumented area of Palm OS:
Applications can launch pref panels using code like this:
LaunchWithCommand(sysFileTPanel, sysFileCFormats,
sysAppLaunchCmdPanelCalledFromApp, 0);
The "LaunchWithCommand" macro encapsulates a call to SysUIAppSwitch after finding the DB that matches the type/creator code passed to it. The key part here is the sysAppLaunchCmdPanelCalledFromApp launch code, which tells the panel that it should put up a "Done" button to exit the panel, rather than show a pop-up trigger with all the panel names.
The OS has a special hook in place to handle these panel launches. When the panel exits, the original app is restarted with a sysAppLaunchCmdReturnFromPanel launch code. If the application doesn't handle this launch code, the OS will again startup the app, this time using a sysAppLaunchNormal code.
|
|
| November 2003 |
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
| |
1 |
| 2 |
3 |
4 |
5 |
6 |
7 |
8 |
| 9 |
10 |
11 |
12 |
13 |
14 |
15 |
| 16 |
17 |
18 |
19 |
20 |
21 |
22 |
| 23 |
24 |
25 |
26 |
27 |
28 |
29 |
| 30 |
|
|