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!

-- 
Matthew (Darkstorm) Bevan       [EMAIL PROTECTED]
Margin Software, NECTI.  http://www.marginsoftware.com
 Re-inventing the wheel, every time.



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

Reply via email to