Antonio,
the small sample run ok
# include "fivewin.ch"
function test()
local odlg,oImage
local oSay[7]
local obtn[1]
DEFINE DIALOG oDlg ; //OF oParent
TITLE "test" ;
SIZE 600, 600
@ 0, 0 IMAGE oImage SIZE 150, 150 OF oDlg
activate dialog odlg ;
on init GetImage( oImage )
retur nil
STATIC FUNCTION GetImage( oImage )
local gcFile := cGetFile( "Bitmap (*.bmp)| *.bmp|" + ;
"DIB (*.dib)| *.dib|" + ;
"PCX (*.pcx)| *.pcx|" + ;
"JPEG (*.jpg)| *.jpg|" + ;
"GIF (*.gif)| *.gif|" + ;
"TARGA (*.tga)| *.tga|" + ;
"RLE (*.rle)| *.rle|" + ;
"All Files (*.*)| *.*" ;
,"Please select a image file", 4 )
if ! Empty( gcFile ) .and. File( gcFile )
oImage:LoadBmp( gcFile )
oImage:center()
endif
return nil
when I use the same command on my app not run
Antonio, Remember the listview test ?
When I drop a file I insert an image on a control Image , it is on the top of the listview control
as you can see here
if I use oImage:center() it move the" Image area" into center of dialog
but I wish move only the jpg of the file I dropped into center of "image area "
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com