bartop

palmoswerks ARCHIVE
Palm OS programming tips from a (former) CodeWarrior insider

header

Navigation

Search
Home
About
Stories
Stuff I Like
Articles
PilRC
CodeWarrior
palmos.techwood.org
DevTools List
Palm OS Dev FAQ

Digging into the Prefs app on the Tungsten T

Author:   Ben Combee  
Posted: 1/3/03; 6:51:22 PM
Topic: Digging into the Prefs app on the Tungsten T
Msg #: 122 (top msg in thread)
Prev/Next: 121/123
Reads: 1418

Palm customized the preferences application for the Tungsten T device to work better with their 5-way navigation disc. In doing this, they divided the prefs into four categories.

A few weeks back, I dug into the resources on the TT to figure out how you can make your own pref panels group somewhere other than the "Other" category.

All of the prefs shipped on the TT have a special 'taic' 1100 resource. This resource holds a single string that is used by the prefs app to assign the panel to a category:

  • "Settings" maps to General
  • "Personalize" maps to Personal
  • "Communication" maps to Communication

It looks like Palm originally named the categories differently, and then changed it later but didn't want to alter their already built pref panels.

Setting up this resource can be done using either Rez or PilRC. The PilRC syntax is simple:

LAUNCHERCATEGORY ID 1100 "Settings"

The syntax in Rez is similar:

resource 'taic' (1100) { "Settings" }

Your panels are called by the Prefs app differently on the TT than on other devices. Rather than being launched normally, they get launched with the sysAppLaunchCmdPanelCalledFromApp launch code, and you need to put up your own "Done" button. You can look at the "Formats" example from the 4.0 SDK to see how this is done; for some odd reason, this sample wasn't included in the 5.0 SDK, so its not on the V9 CD, but the older SDKs and examples can still be downloaded from PalmSource.com.


Send feedback to combee@techwood.org
Copyright © 2004 Benjamin L. Combee
Palm OS is a registered trademark of PalmSource, Inc.
Metrowerks and CodeWarrior are registered trademarks of Metrowerks Inc.

The views expressed on this website/weblog are those of mine alone and do not necessarily reflect the views of PalmSource or Metrowerks.

This is a Manila Site

qwertYAK / frobnovich