Excuse me if this question is repeated (but I have not found it).
If I put a PNG image with TRASPARENT property, it works fine.
But if I put another image back the principal image, I see the gray box.
What is the solution to eliminate the gray box of background?
Thank you
Giovanni Di Maria
Code: Select all
This is my code:
#include "hmg.ch"
FUNCTION Main()
DEFINE WINDOW Form_1 ;
AT 90,90 ;
WIDTH 800 ;
HEIGHT 600 ;
TITLE "Giovanni" ;
MAIN
END WINDOW
@ 0,0 IMAGE foto0 ;
PARENT Form_1 ;
PICTURE "background.png" ;
WIDTH 800 ;
HEIGHT 600 ;
STRETCH
@ 20,20 IMAGE foto ;
PARENT Form_1 ;
PICTURE "dog.jpg" ;
WIDTH 400 ;
HEIGHT 300 ;
STRETCH
@ 120,150 IMAGE foto2 ;
PARENT Form_1 ;
PICTURE "cocacola.png" ;
WIDTH 100 ;
HEIGHT 150 ;
STRETCH ;
TRANSPARENT
ACTIVATE WINDOW Form_1
RETURN NIL