![]() To detect if the user has enabled erasing for the top of the pen, check the following registry subkey: This functionality is accessed by a check box in the Pen buttons group box on the Pen Options tab of the Tablet and Pen Settings control panel dialog. Users can use the top of the pen to erase ink in applications designed for Tablet PC, if their particular hardware allows for it. Determining if Erasing with the Top of the Pen Is Enabled Erase either the ink or the strokes that intersect the path of the cursor, depending upon design or functional considerations.įor an example of how to use the top of the pen to erase ink, see the Ink Erasing Sample. If the Inverted property is true, perform hit testing to determine which ink the cursor is moving over. ![]() When the cursor is in range, look for the Inverted property on the Cursor object. To look for the inverted cursor, listen for the CursorInRange event to determine when the cursor is within the context of your application. To implement erasing with the top of the tablet pen, your application must look for a change in the cursor. You can set the erase mode to delete only the ink that the cursor passes over or whole strokes that intersect the path of the cursor, depending upon design or functional considerations.įor an example of how to use an erase mode to erase ink, see the Ink Erasing Sample. In this mode, use hit testing to determine which ink the cursor is moving over. To do so, the application must have an erase mode that users can employ. The tip of the tablet pen is generally used for handwriting and drawing however, the tip can also be used to erase ink. ![]() If you choose to implement erasing in your application other than by using the InkOverlay object, you can do so by using one of the following two methods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |