Skip to main content

Sample Code

Download

Samples are available for download from GitHub:

https://github.com/Wacom-Developer/stu-sdk-samples

Description

A range of code samples are available including the principal demonstrations:

HTML

Internet Explorer demo - IE9 or above is required for canvas support.
The HTML samples depend on ActiveX support which is only available in Internet Explorer.
To use alternative browsers install the STU SDK SigCaptX package.

DemoButtons: DemoButtons.html
The sample demonstrates a signature capture application. The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture

The sample generates the tablet display image dynamically. Encryption handlers are included.

demoTandC: demoTandC.html
The sample demonstrates a signature capture application from a colour STU such as the 530 or 540. The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture

The sample generates the tablet display from predefined images (PNG files). Encryption handlers are included.

SendToSTU: SendToSTU.html
The sample demonstrates sending an image file to the STU display.
SendToSTU-Area.html demonstrates updating an area of the STU-530 display

Java

DemoButtons DemoButtons.java
The sample demonstrates a signature capture application. The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture

Run-DemoButtons.bat - The batch file can be used to build and run the demo with JDK 7 from a Dos command prompt

DemoButtonsSerial.java
The sample demonstrates a signature capture application using a serial connection to the STU The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture

Run-DemoButtonsSerial.bat - The batch file can be used to build and run the demo with JDK from a Dos command prompt

CSharp

MS Visual Studio C# demo projects are included.
Note: before compiling the project check that Interop.wgssSTU.dll project references match the installed SDK version

DemoButtons
DemoButtons.sln - The sample demonstrates a signature capture application. The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature

  • Clear - clears the display

  • Cancel - cancels signature capture

DemoButtons (save option)- The sample includes code to save the signature

Delphi

Embarcadero demo project: Delphi 7

DemoButtons
DemoButtons.dpr - The sample demonstrates a signature capture application. The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture

DemoButtons_serial
DemoButtons.dpr - The sample demonstrates a signature capture application using a serial STU (e.g. 430V) The demo displays a signature capture window with buttons on the PC and the tablet display:

  • OK - accepts the signature
  • Clear - clears the display
  • Cancel - cancels signature capture