I once again repeat please.
As I suggested above, the method oWnd:DrawImage(...) is the best suited for this purpose.
Please DO NOT create controls like BITMAP,IMAGE,XIMAGE etc.
Please test this example in samples folder:
I have used one Png to display at bottom-right and another at bottom-left.
Window can be resized.
When the window is resized to a very small size, even these pngs get resized correspondingly.
Also please note the transparent rendering.
#include "fivewin.ch"
function Main()
local oWnd, oBrush, oBar
local cPng1 := "..\bitmaps\pngs\2.png"
local cPng2 := "..\bitmaps\pngs\pan_setting.png"
DEFINE BRUSH oBrush FILE "..\bitmaps\backgrnd\beach.bmp"
DEFINE WINDOW oWnd MDI BRUSH oBrush TITLE "TRANSP LOGOS"
DEFINE BUTTONBAR oBar OF oWnd 2007
SET MESSAGE OF oWnd TO "" 2007
oWnd:oWndClient:bPainted := { || ;
oWnd:oWndClient:DrawImage( cPng1, { .6,.7,, },,,,, "RB" ), ;
oWnd:oWndClient:DrawImage( cPng2,{,,,.2},,,,,"LB" ) }
ACTIVATE WINDOW oWnd CENTERED
RELEASE BRUSH oBrush
return nil
