touchscreen

WPF Scrollviewer on touch screen tablet

天涯浪子 提交于 2019-12-10 02:39:59
问题 I'm writing a WPF application that is going to run on a full windows 8 touchscreen tablet (not RT). However touch scrolling doesn't seem to be working. So I'm wondering if it's something I'm doing wrong or if it's even possible? So, I have a WPF window with a scrollviewer. Within that scrollviewer I have a StackPanel which has loads of textblocks within it. See below: <ScrollViewer> <StackPanel> <TextBlock Text="Row 1" /> <TextBlock Text="Row 2" /> <TextBlock Text="Row 3" /> <TextBlock Text=

Registering a touch screen HID with RegisterRawInputDevices does not work

回眸只為那壹抹淺笑 提交于 2019-12-09 23:48:54
问题 I am trying to get raw input data from a Surface touch screen, using RAWINPUT API. Getting the devices list works good. But when I want to register the touch screen device with RegisterRawInputDevices, I have issues : the function returns false with 87 (ERROR_INVALID_PARAMETER) in GetLastError... I have tried different things that I read online but none work. I am using Interop on C# for very simple desktop console application, developping with Visual Studio 2013 on Windows 8.1. The target is

Longpress / longclick event support / plugin in jQuery

a 夏天 提交于 2019-12-09 18:00:55
问题 I'm working on a website which requires mouseover menu's. I would not recommend mouseover menu's from an accessibility point of view, but it's pretty easy to implement using jQuery. The problem: we also need to support touchscreen devices (tablets). On such a device you don't have a mouse and, so the mouseover event is not working. I was hoping for jQuery to have a longpress event, but it doesn't. I did find a jQuery longclick plugin using Google, but it was for jQuery 1.4, so I'm not keen on

How to handle ButtonField & BitmapField Click (Touch) events in Blackberry Storm?

烈酒焚心 提交于 2019-12-09 12:55:56
问题 I have created a ButtonField & a BitmapField like.. public class MyCanvas extends MainScreen implements FieldChangeListener { HorizontalFieldManager hfm; private Bitmap startBitmap; private BitmapField startBitmapField; private ButtonField okButton; MyCanvas() { hfm = new HorizontalFIeldManager(); startBitmap = Bitmap.getBitmapResource("start.png"); startBitmapField = new BitmapField(startBitmap); startBitmapField.setChangeListener(this); hfm.add(startBitmapField); okButton = new ButtonField(

Determine if the device has touch screen or not

老子叫甜甜 提交于 2019-12-08 17:26:33
问题 My app runs on standard phones but it also runs on Android players which I connect via HDMI to my TV and work with a mouse to navigate. Is there a way to programatically deterrmine whether the device has touch screen support so I can distinguish between the two ways of navigation? I tried this, but it returns true on both devices: getPackageManager().hasSystemFeature("android.hardware.touchscreen"); 回答1: PackageManager will refer to the Android player itself which probably has a touchscreen.

Is there a way to determine if the current screen supports touch? [duplicate]

笑着哭i 提交于 2019-12-07 04:56:27
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Is it possible to let my c# wpf program know if the user has a touchscreen or not? How can I tell if the device I'm working on has a touch screen? I'm thinking something like: SystemParameters.IsPenWindows 回答1: foreach (TabletDevice tabletDevice in Tablet.TabletDevices) { if(tabletDevice.Type == TabletDeviceType.Touch) return true; } you can also refer this one: Is it possible to let my c# wpf program know if

Programming a touch screen application with SWING

孤者浪人 提交于 2019-12-06 21:04:12
问题 I would like to know what events my buttons in the UI of my application should have listen to? To mouse click? And what about the pressing and releasing events? Are they the same while clicking via touch screen? Thanks, Tomer 回答1: Most touchscreens simply emulate a mouse, so if your needs are simple you don't need to do anything special - JButtons still fire ActionEvents, combo boxes still fire ItemEvents, etc. If you want to do anything fancy (multitouch, flick-scrolling, etc.) then you can

PyGame and touchscreen

Deadly 提交于 2019-12-06 15:06:02
问题 I've made a pygame GUI interface with buttons who are activated when the user click on them. The GUI works well when i'm using my real mouse but when I run the GUI on the PITFT (https://www.adafruit.com/product/1601 ), buttons do not respond to clicks ( even if i use a harder material than my finger like a stylus ). So the question is : Are Pygame click event compatible with the PITFT or are there a kind of "special" event made for it ? Here is the current mouse event i use in my code : def

Reload tslib touch screen calibration

大憨熊 提交于 2019-12-06 10:49:24
问题 Background: I am working on a somewhat large Qt-based GUI which handles all user interaction with a touch screen. The program is designed such that the user should not need to access a command prompt in order to do anything, including recalibrating the touch screen. I have written an imitation of tslib's ts_calibrate utility which runs as a QWidget and can modify tslib's calibration file at /etc/pointercal . However, although I can modify the calibration file, changes to the calibration do

Keyboard on the screen in WinForms

大憨熊 提交于 2019-12-06 06:08:02
I have developed a Windows Forms application which is used on a touchscreen computer. Is it possible to display a keyboard when the user clicks on an input box (textbox)? And how can i do that ? Are you aware Windows has an on screen keyboard? In Windows 7 it is All Programs > Accesseries > Ease Of Access > On Screen Keyboard. You can write you own if you want, but I use the Windows one all the time when I do not feel like picking up the keyboard. You can create a shortcut to it: The location is %windir%\system32\osk.exe So to launch it, in the TextBox_Click event (or whatever event you want