Page 1 of 1

PostPosted: Sat Apr 29, 2006 4:54 pm
by Tom Miller
In my app, one menu option is to switch to a new form for some interactive graphics. When I tap on that menu item, it triggers the onpenup handler within the new form.

Could there be some problem with my code that the pen event associated with tapping the menu should be passing through like this? Or is this an Orb bug?

Thanks,
Tom

PostPosted: Mon May 01, 2006 8:45 pm
by mlambrigger
In my opinion, it might be a system prerogativ. all the menu events are based on the onpendown() event. So when you go in your new form you will activate the on penon() event as you quit the menu position.

Two solution:
first: use the onpenup() if possible in your form
second: use a flag activated by the onpendown event. If the onpenup is called and the flag is not activated, nothing appends. You know the rest!!

I am using this propriety to show images as long as you let the pen (or finger) on the screen. When you release the screen change to the previous form! Works fine! Yeap!! ;-P

Marc Lambrigger

PostPosted: Tue May 02, 2006 1:41 pm
by Tom Miller
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by mlambrigger</i>
<br />In my opinion, it might be a system prerogativ. all the menu events are based on the onpendown() event. So when you go in your new form you will activate the on penon() event as you quit the menu position.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Thanks for your reply, Marc. The more I think about it, the more it seems like an "undesirable feature" for the menu event to pass through the penup event that belongs to the menu event. This still seems like a bug in either the system or OrbC.

Is there any reason one would want to capture the penup event from a menu tap? It does not seem likely.

Regards,
Tom

PostPosted: Tue May 02, 2006 6:11 pm
by mlambrigger
I will finish an app for the mondial in the next week. In this app you will see how it can be used.

Marc Lambrigger