Hi Guys,
Panning Gestures in UltraGrid using Windows 8 and touch screen are not working, with latest Windows patches loaded.
As a sample to ensure it wasn't a problem with my Windows Form application I setup a UltraGrid, set a data source, filled it with dummy data, both horizontal and vertical scroll bars appear, gestures are enabled and touch control is added to the form but the grid does not pan when using panning gestures.
This is in WinForms 13.1
I was pretty sure this was working. It may be a Automatic Windows Update has caused an issue with the way UltraGrid does it?
Anyway, it doesn't work anymore.
The strange thing is you can't even "DRAG" the scroll bars. The only way to get the grid to scroll is actually click in the scroll bar to either side of the thumb. Touching and dragging the thumb doesn't work, doesn't move.
Works fine with a mouse though.
Any ideas?
I haven't tried capturing the events. I'll give that a go.
Have you got a test application? I can load that and try it and see if it works. If it does I can reverse work from there to see why the different grids are not working correctly.
I did setup a test grid in a new form, default settings, with Gestures enabled, Touch control added to the form, filled with sample date, but same result.
Are you testing on a Surface Pro? While I don't have a Sony T laptop in front of me, we are confident the gestures worked on that, at least originally. I don't have access to the Sony T laptop to recheck though. However since the Surface Pro, and the Toshiba Kira don't work I still have a problem. Surface Pro is straight out of the box.
Hi,
Certain gestures, like tapping and double-tapping are automatically translated into mouse messages. So it makes sense that those work - we don't have any special code to handle them, they are handled automatically.
But real gestures like panning, that don't have any mouse equivalent would not fire mouse messages. So that also seems to be working correctly in your case. I'm afraid I don't know why the gestures aren't working on the grid, though. They definitely work in our testing.
Are any of the grid's Gesture-related events firing like GestureStarted, PanGesture, GestureQueryStatus, or GestureCompleted?
Internet Explorer Desktop, Word, etc all pan fine with using the finger, They do exhibit the same scroll bar issue though where you need to double tap to grab the scroll bar handle. However because the pan gesture works it's not an issue.
I believe it's something Windows is doing differently. Because I programmed a manual one, using an Ultra Panel, to see if I could manually trigger a pan, by capturing the mouse move event, checking if the left button is down etc. Works fine on the desktop using a mouse, click drag, pans (if the mouse is moved more than 10 pixels as a cutoff). Doesn't seem like a finger touch then drag causes a mouse down event. If the control is looking for that to determine pan, I would suspect that is why it's not working. I'm not saying it is though, it may not be, but it is a behaviour I observed while trying to work on a workaround for the issue.
On the Surface Pro or Tablet though using your finger it doesn't. Using the Trackpad it does.
This may sound like a silly question - but is it only the WinGrid having this problem? Are you able to pan other applications on the same machine, such as Windows Explorer or IE?
13.1.20131.2060 I upgraded to ensure that was not an issue. Note please try this on a Surface Pro. This behaviour occurs on a Surface Pro and a Toshiba Kira Touch Screen. Only when using Touch Screen and your figner. If you use a Pen on the surface Pro instead of your finger the scroll bar works ok, but gestures do not work either way. To grab the scroll bar handle I worked out you have to double tap, not idea. Wouldn't matter though if the PAN gesture worked.
Also all latest Windows Updates are loaded on both.