Hi Jon

Many thanks for your suggestion.

I beleive this will register my program with a hardware button in the Prefs
screen. When I press this button, the current application will be terminated
and mine started.

What I really want is for my program to be started, run and for control to
return to the previous application when my program terminates. This is
exactly what happens at the moment if I select the icon which my program
puts on the command bar. This is also how programs such as snapCzalc (
http://www.palmgear.com/index.cfm?fuseaction=software.showsoftware&SID=6A177
EAE-CF18-ADC1-AD5A3562A944D51E&PartnerREF=&prodID=47844 ) work.

Regards

Patrick

"Hays, Jonathan (GE Infrastructure)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
You can use PrefSetPreference to register for the hard buttons.
Example:
PrefSetPreference(prefHard1CharAppCreator, appCreatorType);

-Jon

--------------------------------------------
Jonathan Hays
http://hazelware.luggle.com
Palm OS Certified Developer
--------------------------------------------



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Patrick
Lucas
Sent: Friday, July 23, 2004 12:07 AM
To: Palm Developer Forum
Subject: Responding to hardware button presses


Guys

I have a program which puts an icon on the command bar when it is activated
and carries-out some action when the icon is clicked. It works perfectly!

I now wish to have it carry out the same action when a hardware button is
pressed. I immagine I have to register the program for the hardware button
and then carry-out some action when that button is pressed.

Can anyone here tell me what the functions that I need to call are?

Many thanks

Patrick




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




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

Reply via email to