Signatures

Post Reply
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Signatures

Post by Randal »

All,

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

Thanks,
Randal Ferguson
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Hello Antonio

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

Regards Maurizio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Maurizio,

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

Antonio Linares
www.fivetechsoft.com
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Post by Randal »

Maurizio,

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

Thanks,
Randal Ferguson
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Sure when I have finish it ,

Antonio,

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

Regards Maurizio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Maurizio,

We have already implemented support to save any window or control as a BMP file.

Code: Select all

#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
Post Reply