Поделиться через


Multiple Functionality with One Pen

Multiple Functionality with One Pen

Implementation of multiple functionality with one pen.

A Tablet PC pen may have more than one end that can interact with the Tablet PC digitizer. If both ends of the pen can generate events, one end may be used to lay down ink, select, and point, and the other end may be used for other functions such as erasing.  Microsoft® Windows® Journal supports erasing with the back of the pen.

To implement such functionality, your application must be able to determine which end of the pen is being used and hence when to change the appearance of the cursor. It can do this by looking for the state of the Inverted property on the Cursor object.

For specific details about using the back of the pen for erasing, see Erasing Ink with the Pen. In addition, the Ink Erasing Sample demonstrates how to use the back of the pen to erase ink.