|
|
|
start date: Mon, 13 Aug 2007 10:25:34 -0700,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
Cocotteseb
|
|
2
Paul G. Tobey [eMVP] p space tobey no spam AT no instrument no spam DOT com
|
|
3
Simon Hart
|
Tap And Hold With Keys Events
Hello,
I would like to display the tap and hold animation (dots circle) when
a hardware button is pressed. I'm not really sure about the key event
I should use: KeyPress, KeyUp or KeyDown.
After many search on the Internet, I do now find something that helps
me. (I've maybe not check the right places too)
What I find concerns only the MouseDown event in which we P/Invoke
SHRecognizeGesture to determine if it is " a tap and hold" in order to
show the context menu.
In other words when the user presses an hardware button, the dots
begin to appear one by one and then the context menu is shown. I hope
it is quite clear.
Thank you for your help in advance!
Cocotteseb
Date:Mon, 13 Aug 2007 10:25:34 -0700
Author:
|
Re: Tap And Hold With Keys Events
I'd be inclined to, in the handler for the hardware button, send a
mouse_event() to press the mouse. Normally, you'd probably want to do this
in a key-down event and release the mouse in a key-up event. How are you
going to figure out where this mouse press is supposed to happen, though?
This seems unlikely to result in a good user interface, though. The user's
going to need some sort of control over selecting menu items anyway, so I'm
not sure why he wouldn't just do the whole process, tap-and-hold and menu
select, with that, rather than a key then a stylus.
Paul T.
"Cocotteseb" wrote in message
news:1187025934.356064.66430@g4g2000hsf.googlegroups.com...
> Hello,
>
> I would like to display the tap and hold animation (dots circle) when
> a hardware button is pressed. I'm not really sure about the key event
> I should use: KeyPress, KeyUp or KeyDown.
>
> After many search on the Internet, I do now find something that helps
> me. (I've maybe not check the right places too)
> What I find concerns only the MouseDown event in which we P/Invoke
> SHRecognizeGesture to determine if it is " a tap and hold" in order to
> show the context menu.
>
> In other words when the user presses an hardware button, the dots
> begin to appear one by one and then the context menu is shown. I hope
> it is quite clear.
>
> Thank you for your help in advance!
> Cocotteseb
>
Date:Mon, 13 Aug 2007 10:38:50 -0700
Author:
|
RE: Tap And Hold With Keys Events
Yes you would normally place this in the KeyDown event, this is what I do.
--
Simon Hart
http://simonrhart.blogspot.com
"Cocotteseb" wrote:
> Hello,
>
> I would like to display the tap and hold animation (dots circle) when
> a hardware button is pressed. I'm not really sure about the key event
> I should use: KeyPress, KeyUp or KeyDown.
>
> After many search on the Internet, I do now find something that helps
> me. (I've maybe not check the right places too)
> What I find concerns only the MouseDown event in which we P/Invoke
> SHRecognizeGesture to determine if it is " a tap and hold" in order to
> show the context menu.
>
> In other words when the user presses an hardware button, the dots
> begin to appear one by one and then the context menu is shown. I hope
> it is quite clear.
>
> Thank you for your help in advance!
> Cocotteseb
>
>
Date:Mon, 13 Aug 2007 14:12:01 -0700
Author:
|
|
|