All Forums
 Microsoft Windows CE
 General CE
 Right mouse button with touch screen
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

3935

16 Posts

Posted - 10 Mar 2002 :  17:13:22  Show Profile  Email Poster
Is there something like a right mouse button when using a touchscreen?



ctacke

877 Posts

Posted - 10 Mar 2002 :  23:06:40  Show Profile  Email Poster
Typical right-mouse-button actions such as context-sensitive menus are implemented with a tap-and-hold approach.

When the stylus touches the screen, a WM_MOUSEDOWN event fires. By periodically calling GetAsyncKeyState(VK_LBUTTON) after that event (usually in an iterative loop or with a short-duration timer) it is possible to determine if the stylus is still down.

If the stylus remains down for a specific period of time (i.e 1 second) then you can call some right-button type functionality such as creating and displaying a menu.

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page

ctacke

877 Posts

Posted - 30 May 2002 :  17:29:43  Show Profile  Email Poster
PopupTest is a sample eVB application showing how to implement tap-and-hold functionality. The source can be found in this topic.

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000