Hi, Mark.

Thanks for the reply. I understand that there are
several 'Prefs' application such as Format panel,
General panel and etc and resides in ROM. I have used
an example of Format panel prc and 'overwrite' the
palmOS Format panel. I manage to control it. However,
the application is only 'temporarily' overwritten on
the original PalmOS Format panel and it will be
disappeared after hard-reset(it only become a
3rd-party prc instead). So, i wonder whether there is
source code of General panel for public use or not?
By the way, our application developed on PalmOS 4.0. I
wonder whether the SysGetTrapAddress/
SysSetTrapAddress provide any features for
preferences. I don't think so, am i right? 

Besides, I've seen another software in the market,
grantstreet software(www.grantstreet.com), which also
provide this kind of features whereby not allow user
attempt to change a certain features of PalmOS General
Panel preference. I guess they must use some sort of
method to control over it. Do you have the idea? Pls
help as i was struggling it all the time. Your
attetion is very much appreciated.

--- "Mark A. Peters" <[EMAIL PROTECTED]> wrote:
> So it is the system prefs (as presented in the
> "Prefs" application) that you
> want to lock, not the preferences of your own
> application?
> 
> Setting a system database like "Saved Preferences"
> or "Unsaved Preferences"
> to read-only is a dangerous thing to do -it would
> probably cause the system
> to crash.  Even if you were successful in doing
> this, it would prevent every
> application on the device from changing its own
> prefs.
> 
> I can think of only one way programmatically to
> prevent changes to system
> prefs while still allowing users to use "Prefs" to
> see the prefs settings:
> use SysGetTrapAddress/SysSetTrapAddress (pre-OS 5
> only) to patch
> PrefSetPreference (and others, depending on what OS
> versions you need to
> support) so you can detect an attempt to change a
> system pref and do
> something else instead.  Use the beefed-up
> notification manager for this on
> OS 5.   This assumes that the prefs app uses this
> API call rather than a
> lower-level call.
> 
> Mark Peters


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.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