Hi !
here is an old example called xbwaterm.prg. In it, the image is set as the background of xBrowse and changes its size depending on the window size.
aImage := oWnd:ReadImage( "c:\fwh\bitmaps\pngs\2.png", , .t. )
WITH OBJECT oBrw
:lTransparent := .t.
:bPaintBack := < |Self|
FillRect( ::hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush )
::DrawImage( aImage, ::DataRect():aRect, nil, nil, nAlphaLevel )
::lTransparent := .t.
return nil
>
//
:CreateFromCode()
ENDCan I use an image from a resource in this case?