Signatures

Signatures

Postby Randal » Tue Jan 03, 2006 2:38 pm

All,

Has anyone devised a way to capture a signature and save it as a graphic image?

Thanks,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Antonio Linares » Tue Jan 03, 2006 2:45 pm

Randal,

We have not build a sample yet, but you can use MouseMove events to SetPixel( nRow, nCol ) the touched pixels and finally create a bitmap to save from the hDC.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Mon Sep 04, 2006 4:00 pm

Hello Antonio

In FWPPC oWnd:onMouseMouve don't work , what I cann use for capture
mousemove ?

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Mon Sep 04, 2006 10:45 pm

Maurizio,

There is a new FWPPC build already available, that supports Class TWindow DATA bMMoved.

oWnd:bMMoved = { | nRow, nCol, nFlags | ... }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Tue Sep 05, 2006 8:04 am

Thank Antonio

Now I try to save the window in a BMP with SaveToBmp but in FWPPC
don't exist

I try

DEFAULT cFile := CurDir() + "\Test.Bmp"
hBmp := WndBitmap( oWnd:hWnd )
hDib := DibFromBitmap( hBmp )
DibWrite( cFile, hDib )
GloBalFree( hDib )
DeleteObject( hBmp )

But I have "error 6"
Any Idea

Regards MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Tue Sep 05, 2006 10:57 am

Maurizio,

There is a problem: Windows Mobile does not support GetDIBits() which it is needed to turn a BMP into a DIB file.

We have implemented a replacement but it is not working yet. We expect to find a solution for it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Tue Sep 05, 2006 4:43 pm

Hello Antonio I have now found the solution .

Now I have to set the quality of the signature .

I found an old messagge send by you regarding this :


" You may try to fine tune the mouse speed using SystemParametersInf()
and the SPI_SETMOUSE flag. Also check mouse_event()"

How it is possible to do this ?

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Wed Sep 06, 2006 8:28 am

Maurizio,

We have never tried it ourselves. You may need to do dome tests.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Randal » Wed Sep 06, 2006 3:11 pm

Maurizio,

Would you mind sharing your solution? Also, is there anyway to print the signature (or bmp)?

Thanks,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Maurizio » Wed Sep 06, 2006 4:33 pm

Sure when I have finish it ,

Antonio,

is it possble to have ::bMMoved in the DIALOG TO

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Sat Sep 09, 2006 8:28 pm

Maurizio,

As Class TDialog inherits from Class TWindow, it already has bMMoved support.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Sun Sep 10, 2006 7:11 am

Maurizio,

We have already implemented support to save any window or control as a BMP file.
Code: Select all  Expand view
#include "FWCE.ch"

function Main()

   DEFINE WINDOW oWnd TITLE "SaveToBmp"

   @ 9, 2 BUTTON "Save To Bmp" ;
      SIZE 210, 30 ;
      ACTION ( oWnd:SaveToBmp( CurDir() + "\test.bmp" ), MsgInfo( "done!" ) )
     
   ACTIVATE WINDOW oWnd
   
return nil     
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 8 guests