Flick Gestures - HP TouchSmart 9100 - Business PC Application Manual

Resources for developing touch-friendly applications for hp business touch-enabled desktops
Hide thumbs Also See for TouchSmart 9100 - Business PC:
Table of Contents

Advertisement

The following code fragment of a Windows Presentation Foundation (WPF)
application shows that the code to handle the users touching/tapping the exit
button is just the very same code that handles a mouse click to the exit button.
public Window1()
{
InitializeComponent();
//add the event handler to handle users click/tap the exit button
button1.Click += new RoutedEventHandler(exitButton_Click);
}
private void exitButton_Click(object sender, RoutedEventArgs e)
{
//close the window to exit the application
this.Close();
}
You may wonder why there is nothing relating to touch in this code. The operating
system synthesizes the tap or the touch on the exit button to the mouse left click
message, so no extra code is needed to handle the tap/touch to the button other
than the usual left mouse click event handler. When users use the mouse and left-
click on the button, exitButton_Click is detected. And the very same exitButton_Click
handler is detected when users touch the button.

Flick Gestures

A flick is a simple touch gesture that can be interpreted as a keystroke command.
The following table lists the flick gestures and default assignment in Windows Vista.
Flick
Navigational flicks
Flick left
Flick right
Flick up
Flick down
Editing flicks
Flick up-left diagonal
Flick down-left diagonal
Flick up-right diagonal
Flick down-right
diagonal
Equivalent command
Back command
Forward command
Keyboard Scroll Down
one screenful
Keyboard Scroll Up one
screenful
Keyboard Delete
Keyboard Undo
Keyboard Copy
Keyboard Paste
Enabled by default
Not enabled by
default (because
these flicks are not
natural and
require more
precision )
8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Touchsmart dx9000Touchsmart 9100

Table of Contents