Hello, Xue Qu:

> i want my application to be started from
> one of the soft keys on the silkscreen, and
> i have tried PrefSetPreferences function, but
> it did not work, how can i do it? 

I think it would be helpful if you could post the
relevant section of your code; it's pretty hard
to discuss something that "doesn't work" in a
vaccum :-)

In any case, since I was going to add something
similar to my own app's preferences screen in the
next couple of days anyway, I just quickly added the
following line to my app's startup code to try it
out.  It hardwires my app to the calculator button.

   PrefSetPreference(prefCalcCharAppCreator, 'ABCD');
 
(replace ABCD with your creator ID).

Note that I am using PrefSetPreference, not
PrefSetPreferences (plural).  See the PalmOS
API reference guide for the differences between
the APIs.

Hope this helps,
Oliver


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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