Hi everybody
I need to drag and drop and image on an IMAGE resource, then replace a mysql blob field with the "new" image.
Found something in the forum, but it does not work
I can drop the file into the image, but it doesn't update
Any help will be appreciated.
Fom Chile
Adolfo
I need to drag and drop and image on an IMAGE resource, then replace a mysql blob field with the "new" image.
Found something in the forum, but it does not work
REDEFINE IMAGE oImage FILE "nula.jpg" ID 101 OF oFldTra:aDialogs[ 4 ] UPDATE
oImage:bDropFiles := { |r,c,aFiles| ;
If( Lower( cFileExt( aFiles[ 1 ] ) ) $ "jpg,jpeg", ;
( oImage:LoadImage( nil, aFiles[ 1 ] ), oImage:Refresh() ), ;
MsgInfo( "No es un archivo de imagen permitido", aFiles[ 1 ] ) ) }
.......
ACTIVATE DIALOG odlgTrabaja CENTERED ON INIT DragAcceptFiles( oImage:hWnd, .T. )I can drop the file into the image, but it doesn't update
Any help will be appreciated.
Fom Chile
Adolfo
;-) Ji,ji,ji... buena la cosa... "all you need is code"
http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
