In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TImage

Xailer professional forum in English
Responder
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TImage

Mensaje por pjmfelix »

Hi,
I have a small program to post in art galery, but they dont work 100%.
I put in one BackGround, many randomised images, If is the first image in
the background, that work ok, if is the second image, and is it near the
first, the second image stay underneath the first and the transparent dont
work.
Regards.
--
Cumprimentos
Paulo Félix
Analista / Programador
SHI, Lda.
Rua Garcia de Orta, 48 - 3.º C
Damaia
2720-253 Amadora
Tel.: (351)214 768 098
--

Attached files
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TImage

Mensaje por jfgimenez »

Paulo,
please, show the code you are using. Or beter than that, please, send us a
small self-contained sample which we can review.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TImage

Mensaje por pjmfelix »

Here it is.
Thanks
Regards.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=4c1b2928@svctag-j7w3v3j....]4c1b2928@svctag-j7w3v3j....[/email]
> Paulo,
>
> please, show the code you are using. Or beter than that, please, send us a
> small self-contained sample which we can review.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
--

Attached files Novo_X.7z (2.3 KB)Â Source.7z (1.4 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TImage

Mensaje por jfgimenez »

Paulo,
same issues:
1) The sample you have sent was not "self-contained". It didn't even
compile, due to missing external references.
2) Please, when sending a sample project, use the IDE's "Export project"
option under "Project" menu.
3) Respecting the problem... well, you cannot do it that way. Any control,
including TImage, can be "transparent", but in the meaning that it allow to
see areas from its "parent" container, not any other control in the same
"parent-child" level. So, the behaviour you get is correct. The way to do
what you want is by loading the image into a TPicture object, and painting
it when needind from the OnPaint or OnPainted events. Attached is the fixed
self contained sample.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
--

Attached files Novo_X.zip (9.1 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TImage

Mensaje por pjmfelix »

Perfect !!!
Many thanks Jose.
Best Regards.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:4c1b42b9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Paulo,
>
> same issues:
>
> 1) The sample you have sent was not "self-contained". It didn't even
> compile, due to missing external references.
>
> 2) Please, when sending a sample project, use the IDE's "Export project"
> option under "Project" menu.
>
> 3) Respecting the problem... well, you cannot do it that way. Any control,
> including TImage, can be "transparent", but in the meaning that it allow
> to
> see areas from its "parent" container, not any other control in the same
> "parent-child" level. So, the behaviour you get is correct. The way to do
> what you want is by loading the image into a TPicture object, and painting
> it when needind from the OnPaint or OnPainted events. Attached is the
> fixed
> self contained sample.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
Responder