Capture signature and sketching

I have been asked to develop an application that needs to include some embedded paint functionality. There are two ways in which this is needed.

  1. I need to capture a signature created by a pen device directly on the screen

  2. The ability to sketch a drawing, including straight-line functionality, text, and a library of symbols that can be added to the sketch.

I am guessing what I need is to embed a java applet into the form, but I don’t have any experience doing that and I have only rudimentary java skills myself. So my question is if there is anything out there, either open source or licensable, that I can grab for this purpose, and how the resultant graphic would be saved (I assume into a Rich Text field)? Alternatively, is there another possibility for accomplishing this that I am overlooking?

Thanks for any ideas.

Subject: Capture signature and sketching

Hi Gary,

I have done signature capture in Notes before - but it was not cross-platform. I used the digital ink API offered by Windows XP Tablet edition. The components provided worked fine with Notes and the amount of programming required was minimal.

HTH

Subject: RE: Capture signature and sketching

I did not mean to specify All Releases/Platforms. The target is going to be Notes 7 or 8 on some flavor of Windows.

I am strictly a Notes developer with a bit of C++ and Java experience (and not integrating any of them). I’m really not sure how to get started using an API (or OLE or applet for that matter) within Notes. Can you point me in the direction of any sort of tutorial or help for getting started?

Subject: RE: Capture signature and sketching

Hey Gary,

I would recommend reading the Notes Help on using embedded objects first. Then download the digital ink SDK from MSDN (if you are using a tablet PC already then this is not necessary). There are plenty of VB examples in the toolkit and documentation that show you how to interact with the classes contained in the toolkit. LS is almost identical to VB, so the examples are directly applicable to what you are doing. The only other tip I can offer is to not forget to reference the digital ink DLL in the options section of the form that you want to use it on.

Subject: RE: Capture signature and sketching

Dave, I tried to include the Digital Ink DLL in the options section and it would’nt allow me to do. What am i missing ?

Gary, Did u happened to achieve this. I am stuck and need some one to provide me with the initial few steps.

Raj

Subject: RE: Capture signature and sketching

An OLE object would work if this were a Windows application, but as you have specified “All Platforms” I guess that’s not an option.

An applet should do the trick and would work cross-platform. You would need to add code in the Querysave/onsubmit form event to query the applet for its data, which you could then store as a stream of text in say, a hidden rich text field. Likewise, when loading the document, you would have to have onload event code to read the data out of this field and send it into the applet. I’m not sure whether there’s a way to do this with LotusScript, but you should be able to do it with JavaScript.

Incidentally, don’t use hide attributes to hide rich text; instead, read this technote