HP TouchSmart 9100 - Business PC Application Manual page 15

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

Gesture
down)
Zoom (move two fingers apart or together)
Rotate (move two fingers in opposite directions or
move one finger pivoting around another finger)
Flicks (down and move quickly in a direction)
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
Note: Editing flicks are not enabled by default. You can enabled
them by configure Pen and Touch settings in Windows.
The following MSDN unmanaged code excerpt shows how to catch and decode
gesture messages into a gesture information structure. Basically, you need to check
for WM_GESTURE messages, then call GetGestureInfo to retrieve the gesture
information from lParam. The field dwID of the gesture information structure will
identify the type of gestures.
//catch gesture messages in WndProc
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
lParam)
{
//. . .
switch (message)
{
case WM_GESTURE:
// Insert handler code here to interpret the gesture.
return DecodeGesture(hWnd, message, wParam, lParam);
//. . .
}
//decode gesture messages using GetGestureInfo
LRESULT DecodeGesture(HWND hWnd, UINT message, WPARAM wParam, LPARAM
lParam){
// Create a structure to populate and retrieve the extra message info.
GESTUREINFO gi;
ZeroMemory(&gi, sizeof(GESTUREINFO));
gi.cbSize = sizeof(GESTUREINFO);
Equivalent message
Control key + mouse scroll wheel
Not applicable
Forward command
Back command
Keyboard Scroll Down one screenful
Keyboard Scroll Up one screenful
Keyboard Delete
Keyboard Undo
Keyboard Copy
Keyboard Paste
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Touchsmart dx9000Touchsmart 9100

Table of Contents