Hi Danny,

> help. You might be able to use the key queue. In the end, you'll probably
> have to duplicate the beaming code, but you shouldn't have to duplicate
the

That's the thing that I've been wanting to avoid. The beaming code in
Address is really 1 huge chunk! And I understand that it's not a trivial
thing to bring in the beaming code. I've tried... and failed... there were
simply too many things to take care of. :(

> It sounds like you want pressing the Address hard button to launch your
app
> (since the user selected your app in the Buttons panel), but pressing it
> again to switch to the built-in Address app. Yet, you also want holding in
> the button to beam the user's business card (in your app). You could wait
> for the user to release the button before switching to the built-in
Address
> app. If this is done soon enough after the button is pressed, you assume
> it's just a regular button tap. If the button is held down for long
enough,
> you start a beam. This will make switching from your app to Address a
little
> slower (and feel a lot slower). Look at the sample code for Address to see
> how to detect when the hard button is held down.

My program, on its first run, gives the users the choice of mapping the
Address button to my program (QuickFind). However, regardless of whether the
user has mapped the Address button to my program, when the Address button is
pressed while in QF, it will launch Address app.

Prior to OS3.5, using POSE, I could simply hold on to F2 (Address button),
and it will launch QuickFind, switched to Address, and after the timeout,
start the beaming. However, with OS3.5 and OS4.0 ROMs, this doesn't happen.
Instead, it toggles between QuickFind and Address quickly.

I was wondering if I wrote a hack such that I trap the keyDownEvent, and
remove the autoRepeatKeyMask, will the program be able to beam? And the
biggest problem here is that I've absolutely no idea on how to start writing
a hack. :(

<shameless plug>
If you are willing to take a look (so as to understand what I'm blabbering
abt), my program is available at:
http://www.palmgear.com/software/showsoftware.cfm?prodID=15062
</shameless plug>

Regards,
Gee.



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

Reply via email to