Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

Tap And Hold With Keys Events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cocotteseb - 13 Aug 2007 18:25 GMT
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
Paul G. Tobey [eMVP] - 13 Aug 2007 18:38 GMT
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.

> Hello,
>
[quoted text clipped - 14 lines]
> Thank you for your help in advance!
> Cocotteseb
Simon Hart - 13 Aug 2007 22:12 GMT
Yes you would normally place this in the KeyDown event, this is what I do.

Signature

Simon Hart
http://simonrhart.blogspot.com

> Hello,
>
[quoted text clipped - 14 lines]
> Thank you for your help in advance!
> Cocotteseb

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.