hey i tweaked around with the code to make it 3.5 companitcble but i
hjave 1 problem, in the capture signtuare it looks like this...

static void CaptureSignature()
{
        short                   x, y, prevX, prevY;
        Boolean                         penDown;
        RectangleType           theClipRectangle;
        RectangleType           theGadgetBounds;
        
        // Grab the gadget's bounds
        GetSignatureGadgetBounds( &theGadgetBounds );
        
        // Grab the coordinates of the pen
        EvtGetPen( &prevX, &prevY, &penDown );
                
        // Save off the current clip rectangle and set the new clipping
        // rectangle to be the bounds of the signature gadget.
        WinGetClip( &theClipRectangle );
        WinSetClip( &theGadgetBounds );
        
        // Track the pen
        do
        {
                EvtGetPen(&x, &y, &penDown);
                
                // Don't bother to do anything if the user hasn't moved
                // the pen!
                if ((x != prevX || y != prevY))
                {
                        WinDrawLine( prevX, prevY, x, y );
                
                        prevX = x;
                        prevY = y;
                }
        } while (penDown);

        // Turn the drawing into a bitmap and save the bitmap in a
global
***ERROR HERE*** gBitmapPtr = GetSignatureBitmap( &theGadgetBounds );
        
        // Restore the old clipping rectangle
        WinSetClip( &theClipRectangle );
}

thje line the program crash on is there, what couldn be wrong?  i saw
that the gadget bounds weren;t null.

boaz

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to