Building Tablet PC Applications ROB JARRETT
Building Tablet PC Applications
ROB JARRETT
Tablet PC 开发,有需要PDF的留下邮箱
目录
This text was added by using code.Building Tablet PC Applications......................................1
ROB JARRETT ...............................................................................................................1
PHILIP SU......................................................................................................................1
Chapter 3. Introduction to the Tablet PC Platform SDK.....................................................9
A Sort of Homecoming .............................................................................................................10
Finding the Right Operating System for the Job.......................................................17
Managed APIs .....................................................................................................................18
Ink Controls .........................................................................................................................20
COM Automation APIs ......................................................................................................21
Sample Applications .........................................................................................................23
Installing the Tablet PC Platform SDK..................................................................................26
System Requirements.......................................................................................................27
Getting the SDK..................................................................................................................28
Setting Up Your Environment.........................................................................................29
SETTING UP YOUR VISUAL STUDIO .NET ENVIRONMENT ..............31
NOTE .............................................................................................................................31
Anatomy of the Tablet PC Platform SDK .....................................................................37
NOTE .............................................................................................................................37
Overview of the Managed API.................................................................................................40
All That You Can’t Leave Behind ...................................................................................45
Design Goals of the API ...................................................................................................46
THE PRIME DIRECTIVE .......................................................................................49
WHAT’S COVERED BY THE MANAGED API..............................................49
WHAT’S NOT COVERED BY THE MANAGED API ...................................52
NOTE .............................................................................................................................54
Managed API Object Survey............................................................................................58
TABLET INPUT API................................................................................................59
Ink Data Management API................................................................................................64
Ink Recognition API...........................................................................................................67
Ink Control Comparison with Managed API ........................................................................70
Welcome to the Great Adventure...........................................................................................74
Chapter 4. Tablet PC Platform SDK: Tablet Input..............................................................75
Sample Applications .................................................................................................................76
Capturing Input from the Pen .................................................................................................77
NOTE .............................................................................................................................77
Requirement #1—Mouse Emulation..............................................................................78
NOTE .............................................................................................................................78
Requirement #2—Digital Ink............................................................................................79
Requirement #3—Pen-Based Actions ..........................................................................81
3 / 891
NOTE .............................................................................................................................82
Summing Up the Requirements .....................................................................................83
.Anatomy of the Tablet PC’s Tablet Input Subsystem......................................................83
Tablet Hardware..................................................................................................................85
NOTE .............................................................................................................................86
Chock-full of HID-y Goodness ........................................................................................86
NOTE .............................................................................................................................87
The Center of the TIS Universe: Wisptis.exe ..............................................................88
NOTE .............................................................................................................................89
GETTING INPUT FROM THE DRIVER............................................................90
PERFORMING MOUSE EMULATION ..............................................................91
DETECTING PEN-BASED ACTIONS ..............................................................96
NOTE .............................................................................................................................97
DISPATCHING EVENTS .......................................................................................98
MAKING SENSE OF IT ALL .............................................................................101
Winlogon Desktop Support ...........................................................................................103
What About Ink?...............................................................................................................104
Platform SDK Support for Tablet Input ..............................................................................104
Getting Ink from a Tablet................................................................................................105
SAY HELLO TO THE INKCOLLECTOR .......................................................105
NOTE ...........................................................................................................................106
SAMPLE APPLICATION: "HELLOINKCOLLECTOR"............................106
NOTE ...........................................................................................................................110
When Ink Is Not Enough.................................................................................................111
NOTE ...........................................................................................................................112
SAMPLE APPLICATION: HELLOINKOVERLAY ......................................113
CHANGING THE ERASER MODE ..................................................................122
THE INKCONTROL CLASS IN
THE BUILDINGTABLETAPPS LIBRARY ....................................................123
INKOVERLAY’S ATTACH MODE ...................................................................124
NOTE ...........................................................................................................................126
NOTE ...........................................................................................................................127
InkCollector Events .........................................................................................................127
NOTE ...........................................................................................................................128
INK STROKE EVENTS ........................................................................................129
PEN MOVEMENT EVENTS ................................................................................130
NOTE ...........................................................................................................................135
MOUSE TRIGGER EVENTS ..............................................................................135
TABLET HARDWARE EVENTS .......................................................................137
NOTE ...........................................................................................................................137
RENDERING EVENTS (INKOVERLAY ONLY) ..........................................138
INK EDITING EVENTS (INKOVERLAY ONLY) .........................................139
SAMPLE APPLICATION: INPUTWATCHER ..............................................143
ANALYZING THE EVENTS................................................................................166
4 / 891
TIP ................................................................................................................................170
InkOverlay Events............................................................................................................173
Specifying the Tablet Data to Capture—Packet Properties ..................................174
TIP ................................................................................................................................175
SAMPLE APPLICATION: PACKETPROPERTYWATCHER .................180
TIP ................................................................................................................................180
INK COORDINATES .............................................................................................198
Extending InkOverlay Behaviors .................................................................................198
Sample Application: TopOfPenErase .........................................................................200
Sample Application: ModelessSwitch ........................................................................207
Getting Introspective...............................................................................................................213
Tablets Collection ............................................................................................................214
Tablet Class .......................................................................................................................215
SAMPLE APPLICATION: DEVICEWALKER ..............................................218
Common Properties on InkCollector and InkOverlay.............................................227
Best Practices for InkCollector and InkOverlay...............................................................232
NewPackets and NewInAirPackets Events................................................................232
Choosing Desired Packet Properties..........................................................................233
Gesture Recognition .......................................................................................................233
Mouse Events....................................................................................................................234
Summary ....................................................................................................................................235
Chapter 5. Tablet PC Platform SDK: Ink Data Management, Part I .............................236
Ink and Stroke