Hi Ben,

Ben Combee wrote:

At 08:26 PM 2/17/2004, you wrote:

Hi folks, what I want to do is to intercept a datebook hardbutton key press, and handle it manually. If conditions are not met I want to ignore the button press completely, and I'm not sure how to avoid the launch of Datebook, or kill it if it is underway.


You don't need to do anything special. You just need to check the event you get from EvtGetEvent before passing it to SysHandleEvent. That's your chance to intercept the hard key press before the system sees it and turns it into a SysUIAppSwitch to the Datebook app.

I don't think I explained myself well enough. I do know that you can do that from within the current app, but I'm trying to intercept the datebook press using a 3rd party app. For instance, you are in NotePad, and press the Datebook button. I want my app to intercept THAT press, so I don't have access to the Notepad eventloop where I could handle this. So I thought of using a notification in a separate small app, and it works well at detecting the press, and launching my app if conditions are correct, but if conditions are NOT met it always launches Datebook. I haven't found any return code, or queue clearing function, that will stop the Datebook launch from happening. Does that make my problem more clear, or have I misunderstood your advice.


BTW, this is on an OS5 T3.

Thanks for your help. Bob.

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

Reply via email to