... OR : local oImage, oBrush, aRect := oDlg:GetRect() DEFINE IMAGE oImage FILENAME "..\bitmaps\pngs\chart.png" oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside oImage:End() oDlg:SetBrush( oBrush ) oBrush:End() ...