On 2006-04-08, John Powers <[EMAIL PROTECTED]> wrote: > Is there a way I can bring up the Preferences' Date & Time screen and the > Digitizer screen from within my program? My target Palm OS is 4.0.
Quite easy. All the preference screens (or panels) are normal Palm applications. Instead of type 'appl' they have the type 'panl'. These types are defined as sysFileTApplication and sysFileTPanel in the SDK. The Creator ID for Date & Time is 'dttm' and for the Digitizer 'digi'. These creator IDs are defined as sysFileCDigitzer and sysFileCDateTime in the SDK (SystemResources.h). Use SysUIAppSwitch() to switch to the preference panel you want. Use the launch command sysAppLaunchCmdPanelCalledFromApp instead of sysAppLaunchCmdNormalLaunch. The sysAppLaunchCmdPanelCalledFromApp launch command causes a 'done' button to be displayed on the preference panel. When the 'done' button is tapped the system uses SysUIAppSwitch to start the previous application, i.e. the app which 'called' the preference panel. This is supported starting at Palm OS 2.0 and also works on 5.x. HTH Ton van Overbeek -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
