Download Naurtech CETerm Scripting Guide
Transcript
NAURTECH W EB BROWSER AND TERMINAL EMULATION FOR W INDOWS CE AND W INDOWS MOBILE
Property
Description
Values
CapturePrompt
User prompt text. D:‖Please sign and tap
Accept:‖
Text displayed on clear button. If empty,
button is not displayed. D:‖Clear‖
Key code (Appendix 5) to clear signature.
D:0x43 (‗C‘)
If true, only strokes within box are
displayed. D:false
Size of capture prompt font. D:16 (pt)
Weight of capture prompt font. D:500
(medium)
Color of pen in signature box. D:0x000000
(b,g,r - black)
Width of pen in signature box. D:2
Returns the last error value associated
with any SignatureCapture operation.
text
ClearButtonText
ClearButtonKey
ConstrainToBox
PromptFontSize
PromptFontWeight
SignaturePenColor
SignaturePenWidth
LastError
text
integer
true, false
integer
integer
integer
integer
unsigned
integer
Example
The following example shows how signature capture can be performed from a
web page. This page will save a new signature image each time the capture is
invoked. The most recent image will be displayed in the web page when the
capture is complete. To run this example, put the contents in a file and copy the
file to the device to use as a static page (i.e., file:///signandshow.htm)
<html><head>
<title>Signature Capture Demo</title>
</head>
<body>
<b>Signature Capture Demo</b>
<br>
<form name=form1>
<input type=button name="signme" value="Capture Signature"
onclick="mycapture();" >
<table border="1" width="100%" style="background-color:darkgray;">
<tr><td>
<input type="image" name="test1"
id="sigimage" onclick="alert('ok');"
alt="Tap 'Capture Signature' to continue"
value="Testbutton" src="signature.bmp"/>
</td></tr>
</table><br></form>
<script language=javascript>
CETerm Scripting Guide
Page 92