Peter's Gekko

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Tablet PC : What can and what cannot be overlaid with an InkOverlay object

Part of the tablet PC API is the Inkoverlay class. The constructor takes a control or even a windows handle. The user can scrible on the associated window. You can pass almost any handle to the constructor, like the handle of an ActiveX control on your Winform. This snippet makes the calender ActiveX a pen target:

private InkOverlay io;

io = new InkOverlay(axCalendar1.Handle);
io.AttachMode = InkOverlayAttachMode.InFront;
io.Enabled = true;

Now the user can scrible over the calender ActiveX control.

The control itself can no longer be clicked as it is shielded off by the ink-overlay.

There is one limitation to the handles accepted, they have to be owned by the same process. Passing a handle to (the mainform of) another application will result in an exception. Which is a pitty, else making a general annotation app for a tablet would have been very easy. It would be a matter of covering the app with an Inkoverlay object.

Peter


Posted 12-14-2004 11:59 AM by pvanooijen
Filed under:

[Advertisement]

Comments

Peter's Gekko wrote Tablet PC pen capabilities and the tablet API
on 01-31-2005 1:10 AM
Tablet PC pen capabilities and the tablet API
TrackBack wrote Tablet PC pen capabilities and the tablet API
on 02-18-2005 12:47 PM
Peter's Gekko wrote So what about that Tablet PC ?
on 05-09-2005 3:23 AM
I’m a big fan of the tablet PC and have a category tablet PC on my blog. But havn’t blogged that much...
Peter's Gekko wrote Recognizing handwriting on a Tablet PC: beyond Strokes.ToString()
on 06-16-2005 5:09 AM
Having spent 3 solid days on doing a crash-course VS 2005 training it's time for a little diversion....

Add a Comment

(required)  
(optional)
(required)  
Remember Me?