On Dec 17, 2004, at 10:32 AM, Developer wrote:
I have downloaded the signature capture example from the Palm Knowledge base
from this link:
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/ std_adp.php?p_si
d=SsjyBdth&p_lva=&p_faqid=130&p_created=1032296548&p_sp=cF9zcmNoPTEmcF9 ncmlk
c29ydD0mcF9yb3dfY250PTQmcF9zZWFyY2hfdGV4dD1zaWduYXR1cmUmcF9zZWFyY2hfdHl wZT0z
JnBfcHJvZF9sdmwxPX5hbnl_JnBfY2F0X2x2bDE9fmFueX4mcF9zb3J0X2J5PWRmbHQmcF9 wYWdl
PTE*&p_li=
This code works only for Palm OS 3.2 and below whereas I am looking for a
solution for Palm OS 4.1. What changes do I have to make? Does anyone have
sample code that works for Palm OS 4.1 or if someone can help me figure out
exactly what changes I need to make to this code that would be very helpful.
The page you referenced mentions that you need to use the Win API to capture the screen bits for Palm OS > 3.2. The source code specifies exactly which part (Signature.c in the GetSignatureBitmap() routine) may not work with Palm OS > 3.2. So looking at the code, you need to get the bitmap out of the offscreen window and into a bitmap pointer. Looking up the Palm reference manual shows a routine called WinGetBitmap function that does just what you need.
Don
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
