At 01:50 AM 9/16/2003, Matthew Darkstorm Bevan wrote:
Yes, and yes.  My Common/UI library does exactly this to provide
standard about dialogs, VFS open and save dialogs, help display, and
more.  The library even includes application icons for itself.  You have
to worry about mapping over someone else's resource IDs (ID
collisions) - having two forms with the same ID is just asking for it.

Most of my Common/UI resources are either below 1000 or above 9000 (but
below the system-reserved 10,000).  The way this works is the system
looks for requested resources (forms and whatnot) in the
most-recently-opened-database first, then in other databases by order of
opening.  Thus it will look in the library, then the application, then
the system.

There is no way to hide resources in your library from the active
application that is using it, so be careful when assigning resource IDs!

Be careful with the above 9000 space. PilRC's default auto ID generation code starts at 9999 and counts down. With PilRC 2.9p10-CW and later, you can use "RESETAUTOID" to change the range of auto ID's generated by the tool. For small apps, this may not be an issue, but I'd probably stay away from 9500 and higher.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to