|
| [WM20] how to erase the image from the image control |
| Iniciado por guest, 26,mar. 2016 17:40 - 7 respuestas |
| |
| | | |
|
| |
| Publicado el 26,marzo 2016 - 17:40 |
Hi,
The image control is linked to image from the database.
What function that can allow erasing of this image control ? as i need the user to sign on this image control (eg. dLine to draw the line for the signature) ?
Regards,
PETER ZHOU |
| |
| |
| | | |
|
| | |
| |
| Publicado el 26,marzo 2016 - 23:07 |
Hi
dstartdrawing should erase the field
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,marzo 2016 - 07:25 |
Hi Fabrice,
I did issue the dstartdrawing but it didn't work. It will only work on a new signature image. Once, the image is saved..if later to "recall" it, issue dstartdrawing don't work.
Regards,
Peter Zhou |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,marzo 2016 - 12:30 |
Hi Peter,
Out of my head: ImageControl = ""; multitaskredraw() should do the trick I believe...
Cheers,
Peter |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,marzo 2016 - 09:48 |
Quote Peter Holemans
Hi Peter,
Out of my head:
ImageControl = ""; multitaskredraw()
should do the trick I believe...
Cheers,
Peter
multitaskredraw() is not supported under windev mobile.
Regards,
PETER ZHOU |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,marzo 2016 - 17:43 |
Peter, Afaik dStartDrawing DOES erase the image. This function as several options where "dErase" is the default. There's also a "dNoErase" if you do NOT want the image to be erased. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,marzo 2016 - 13:08 |
Hi Arie,
dStartDrawing will work before the image is save..After the image is saved into the database ( binary memo ) and when the image is "read" again from the database & assigned to the image control, dStartDrawing does not work.
Regards,
PETER ZHOU |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 34 mensajes |
|
| Publicado el 30,marzo 2016 - 13:26 |
I used this to erase the image of a signature -
(Image1 is the 'real' image. Image2 is simply a saved white background image.)
dEndDrawing(Image1) Image1=Image2 dStartDrawing(Image1,dNoErase) MultitaskRedraw()
You draw the signature using events (mainly Mouse rollover) on the image using MouseXPos() and MouseYPos()
-- Regards,
Norman |
| |
| |
| | | |
|
| | | | |
| | |
|