Index   Commented   Search   About

Gesture

A default HRC enables all gestures. An application can disable certain gestures by calling the EnableGestureSetHRC function to change the gesture configuration for the HRC. The following example disables the gestures for cut, copy, and paste while enabling all other gestures:

iRet = EnableGestureSetHRC( hrc1, GST_ALL ^ GST_CLIP, TRUE );

For more information about EnableGestureSetHRC, see the reference section in Chapter 10, "Pen Application Programming Interface Functions."

The first argument of EnableGestureSetHRC is the HRC handle returned by CreateComptibleHRC. The second argument is a bitwise-OR value formed by the desired combination of GST_ constants, listed here:

Gesture constant
Description
GST_CLIP
Cut, copy, and paste.
GST_WHITE
Space, tab, and newline.
GST_SEL
Lasso selection.
GST_EDIT
Insert, correct, and undo.
GST_SYS
Combines all the above.
GST_CIRCLELO
Lowercase circle gestures.
GST_CIRCLEUP
Uppercase circle gestures.
GST_CIRCLE
Combines GST_CIRCLELO and GST_CIRCLEUP.
GST_ALL
Combines all the above.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun