Sets the data in the control in Pocket Word Ink (PWI) format. This format is compatible with Pocket Word.

Signature controls
Integer controlname.SetDataAsInk ( data )
Argument |
Description |
|---|---|
controlname |
The name of the control for which you want to set the data |
data |
The blob containing the data in PWI format |
Integer. Returns 1 for success and a negative integer for failure.
The SetDataAsInk function can set both typed and freehand drawing or writing into a Signature control.
The following example reads data in PWI format from a file into a blob, then sets the data into a Signature control:
blob lblb_ink
integer li_file, li_rtn
li_file = FileOpen("\My Documents\testpwi.pwi", &
StreamMode!, Read!)
FileRead( li_file, lblb_ink )
FileClose( li_file )
li_rtn = sig_1.SetDataAsInk(lblb_ink)
sle_1.text = string(li_rtn)
| Copyright © 2004. Sybase Inc. All rights reserved. |
|
|