touch screen

  • Thread starter Thread starter Guest
  • Start date Start date
i am building a soft based on .net compact framework that should run on
various platforms (web-pad, pda, normal pcs). the problem is showing a
context menu. on touch screens it is usually implemented after a 'longer'
pressing of a pen, while on normal pc we have a mouse right click. during
touching a screen i am doing some drawing and therefore it has no sense to
use a 'longer' touching for showing a context menu. since on normal pc it
runs fine i wanted to make some 'if' in the code and implement context menu
for touch screen devices a different way.
the only thing i found is to search registry for this entry:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH
 
If it were me, I'd do the same thing in both cases. If the guy holds the
mouse button down for a significant period in the same spot, do the same
thing as you would with the touch screen. If the right mouse button is
pressed, do the right mouse button thing. In that way, not only do you not
have to know which is present, but it should work if both are present. Is
that a possibility?

Paul T.
 
Back
Top