Sketch and Signature Controls
PP Controls provides a sketch control. It is ideal for signature capture. The width of the pen can be specified as well as the pen colour. The sketch control can load and save .bmp files which are compatible with windows CE and PC’s.
Sketch - Methods & Properties
NewSketch
Creates a new sketch control and returns the handle of the new control.
| hWnd of parent form (or frame) or placeholder (hWnd) | |
| Specifies the style of the window being created. | |
| If the style PC_PLACEHOLDER is specified, then hWnd refers to the control to be used as a as placeholder. The new sketch control will be placed on the form at the same location as this control, with the same size and font. The place-holder control is then hidden. Note: If PC_PLACEHOLDER style is not given, then hWnd specifies the parent window for the new control. The new control is positioned according to the current values of PPCtrl.Left, PPCtrl.Top, PPCtrl.Width and PPCtrl.Height. The font of the parent window is used. |
Filename
Sets the filename for load and save operations for the sketch control specified by hWnd.
Load
Loads the bitmap file specified by PPCtrl.FileName in to the sketch control specified by hWnd. An error message will be displayed if the file cannot be opened. Returns true (1) if successful, otherwise false (0).
Save
Saves the contents of the sketch control specified by hWnd in the bitmap file specified by PPCtrl.FileName. An error message will be displayed if the file cannot be opened. Returns true (1) if successful, otherwise false (0).
PenColor
Sets the pen color for future drawing on the sketch control specified by hWnd.
PenWidth
Sets pen width for future drawing on the sketch control specified by hWnd. Pen width can be a value from 1 to 6 inclusive.
Erase
Erases the contents of the sketch control specified by hWnd.
Sketch – Styles
None
Sketch - Constants
None
