touchscreen

Touch Scrolling ScrollViewer in WPF App with RealTimeStylus Disabled

泪湿孤枕 提交于 2019-12-03 09:34:39
We are working on a WPF 4.5 application that will be run on Windows 8 computers with touchscreen monitors. We have disabled support for the RealTimeStylus following the directions on the MSDN , since we have some views that need multitouch support through WM_TOUCH. The problem is that disabling the RealTimeStylus support seems to also disable the user's ability to scroll a ScrollViewer using touch - normally the user can pan around ScrollViewers with their fingers, but if RealTimeStylus support is disabled, it does not seem possible to do this. The ScrollViewer's PanningMode is set to "Both".

How to determine if an Android device has a touchscreen?

空扰寡人 提交于 2019-12-02 17:55:00
I'm spending considerable time in making my UI to work with keyboard input only. But in the end I'm not sure whether I can rely on the assumption that Android devices all have touch screens. Is there a way to determine if an Android device has a touch screen? You should research the existing devices and read the Android Compatibility Definition Document (CDD) and decide for yourself. I have spent some considerable time trying to figure out this problem for myself. The posters above are correct that Android already powers some non-touch devices and will power Google TV in the near future, but

Can't seem to get touch input from TouchPanel in Windows Phone 7

我的梦境 提交于 2019-12-02 16:55:00
问题 I've started a new project in Visual Studio and have been trying to use the static TouchPanel class to get input. I have enabled the 'Tap' gesture through the EnabledGestures property, however when I tap the screen the gesture does not register (i.e. TouchPanel.IsGestureAvailable returns false). Other things such as Mouse.GetState().LeftButton == ButtonState.Pressed do not ever prove true even though in my previous project (which was based on a Microsoft sample project) it always worked

Algorithm to implement kinetic scrolling

偶尔善良 提交于 2019-12-02 16:23:46
What are some good algorithms for creating a kinetic scrolling implementation? The feature would be tested on a custom UI list. While I am targeting mobile devices (those that do not have this feature built-in), any algorithm or code example from different programming field may also suit. Breton I implemented one myself recently. These are the steps I took. You need to measure the velocity of your cursor (either mouse cursor or finger) Implement a simple particle physics loop. Information about how to do that can be found here give your particle "bounds" using math derived from the width of

Can't seem to get touch input from TouchPanel in Windows Phone 7

若如初见. 提交于 2019-12-02 09:35:21
I've started a new project in Visual Studio and have been trying to use the static TouchPanel class to get input. I have enabled the 'Tap' gesture through the EnabledGestures property, however when I tap the screen the gesture does not register (i.e. TouchPanel.IsGestureAvailable returns false). Other things such as Mouse.GetState().LeftButton == ButtonState.Pressed do not ever prove true even though in my previous project (which was based on a Microsoft sample project) it always worked without any problems. Anyone have any ideas why I can't seem to be able to get any form of input from the

JavaFX WebView / WebEngine show on-screen-keyboard automatically for each text input

百般思念 提交于 2019-12-01 22:20:12
Background/Context: I am developing touch screen based kiosk application with JavaFX. The app integrates browser – WebView. The problem is that all user inputs have to be made through on screen keyboard (SW keyboard) It would be nice to have an option to register an event-handler on WebView/WebEngine for any HTML text input element got/lost focus, so that I could show/hide on-screen-keyboard. Even though I searched the Internet, I did not find this kind of feature. My questions: Does JavaFX / WebView provides any support for these cases? If you were to tackle this problem, what would be your

Disable Double Tap To Click On Touchscreen iOS Devices

风流意气都作罢 提交于 2019-12-01 20:05:51
So, quite recently I've been working on a website that was given me to improve and make responsive, and one of the issues that I've been faced with is that there are many elements that are clickable, with a mixture of CSS and jQuery effects for hover states. Now, firstly I'd prefer all of these hover states to be CSS, but the main issue I'm having is that on these hover states, certain elements are changing display and visibility css properties. I did some reading, and apparently if this is the case, on touchscreen iOS devices, this causes the first 'touch' to force the hover state, and then a

How to implement a Java Swing application to Touch Screen

◇◆丶佛笑我妖孽 提交于 2019-12-01 18:04:58
We have built a Point of Sale system and now we require to implement it to Touch screens? Do we need to change any code in turn to allow this to work. And we are using the Keyboard to enter values - let's say quantity - Is there a java way of popping up a key board (like android) when I focus on a JTextField? Here is a simple example on how to implement a pop-up keyboard: import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event

How to implement a Java Swing application to Touch Screen

北慕城南 提交于 2019-12-01 17:53:25
问题 We have built a Point of Sale system and now we require to implement it to Touch screens? Do we need to change any code in turn to allow this to work. And we are using the Keyboard to enter values - let's say quantity - Is there a java way of popping up a key board (like android) when I focus on a JTextField? 回答1: Here is a simple example on how to implement a pop-up keyboard: import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java

How to disable the little touch-keyboard on Windows edit controls

蓝咒 提交于 2019-12-01 12:38:27
In a windows version with tablet support, a small keyboard icon appears when an edit control gets focus. If you touch it the touch keyboard pops up. Is there a way to disable this? It's rather inconvenient if you have your own touch keyboard. I want to disable it for certain edit controls in code, ie. I'm not looking for a Windows setting. Giel Well, I guess a late answer is better than no answer, so here it comes: You can disable the Windows onscreen-keyboard for your application. To do so, start Regedit and navigate to the Key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TabletTIP\DisableInPlace].