Page 1 of 1
Signatures
Posted: Tue Jan 03, 2006 2:38 pm
by Randal
All,
Has anyone devised a way to capture a signature and save it as a graphic image?
Thanks,
Randal Ferguson
Posted: Tue Jan 03, 2006 2:45 pm
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.
Posted: Mon Sep 04, 2006 4:00 pm
by Maurizio
Hello Antonio
In FWPPC oWnd:onMouseMouve don't work , what I cann use for capture
mousemove ?
Regards Maurizio
Posted: Mon Sep 04, 2006 10:45 pm
by Antonio Linares
Maurizio,
There is a new FWPPC build already available, that supports Class TWindow DATA bMMoved.
oWnd:bMMoved = { | nRow, nCol, nFlags | ... }
Posted: Tue Sep 05, 2006 8:04 am
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
Posted: Tue Sep 05, 2006 10:57 am
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.
Posted: Tue Sep 05, 2006 4:43 pm
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
Posted: Wed Sep 06, 2006 8:28 am
by Antonio Linares
Maurizio,
We have never tried it ourselves. You may need to do dome tests.
Posted: Wed Sep 06, 2006 3:11 pm
by Randal
Maurizio,
Would you mind sharing your solution? Also, is there anyway to print the signature (or bmp)?
Thanks,
Randal Ferguson
Posted: Wed Sep 06, 2006 4:33 pm
by Maurizio
Sure when I have finish it ,
Antonio,
is it possble to have ::bMMoved in the DIALOG TO
Regards Maurizio
Posted: Sat Sep 09, 2006 8:28 pm
by Antonio Linares
Maurizio,
As Class TDialog inherits from Class TWindow, it already has bMMoved support.
Posted: Sun Sep 10, 2006 7:11 am
by Antonio Linares
Maurizio,
We have already implemented support to save any window or control as a BMP file.
Code: Select all | Expand
#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